I am having a little problem. I want to get today date in mm/dd/yy format
and my codes returned wrong date. Please help if you know what is wrong
with my code or if you have done this before.
struct tm *tmptr;
tmptr = localtime(&clock);
printf("%d/%d/%d\n",tmptr->tm_mon+1, tmptr->tm_mday, tmptr->tm_year);