Hi im trying to store the current date and time to a file. When i print it, it is in the US format - MM/DD/YYYY
#include <time.h>
_strdate( dateStr );
cout << "Current date: " << dateStr << endl;
_strtime( timeStr );
cout << "Current time: " << timeStr;
Output:
Current date: 09/17/10
Current time: 14:20:55
I want 17/09/10, is there a way to do this? Without using a delimtter and printing the day, month, year seperatly.