#include <stdio.h>
int main() {
int day, year;
char weekday[20], month[20], dtm[100];
"\n\tDigite Dia Mes a ano em string"
"\n\tex.(Saturday March 25 1989): "
);
sscanf(dtm
, "%s %s %d %d", weekday
, month
, &day
, &year
); printf("%s %d, %d = %s\n", month
, day
, year
, weekday
); }
//https://pt.stackoverflow.com/q/223997/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGludCBkYXksIHllYXI7CiAgICBjaGFyIHdlZWtkYXlbMjBdLCBtb250aFsyMF0sIGR0bVsxMDBdOwogICAgcHJpbnRmKAogICAgICAgICJcblx0RGlnaXRlIERpYSBNZXMgYSBhbm8gZW0gc3RyaW5nIgogICAgICAgICJcblx0ZXguKFNhdHVyZGF5IE1hcmNoIDI1IDE5ODkpOiAiCiAgICApOwogICAgc2NhbmYoIiVbXlxuXXM4MCIsIGR0bSk7CiAgICBwcmludGYoIiVzXG4iLCBkdG0pOwogICAgc3NjYW5mKGR0bSwgIiVzICVzICVkICAlZCIsIHdlZWtkYXksIG1vbnRoLCAmZGF5LCAmeWVhcik7CiAgICBwcmludGYoIiVzICVkLCAlZCA9ICVzXG4iLCBtb250aCwgZGF5LCB5ZWFyLCB3ZWVrZGF5KTsKfSAKCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzIyMzk5Ny8xMDE=