how to get the date
-
Hi, I would like see if I can get the system date in a few lines of code? any ideas? Thanks Ehsan Behboudi
look up time_t in the MSDN. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Hi, I would like see if I can get the system date in a few lines of code? any ideas? Thanks Ehsan Behboudi
-
Hi, I would like see if I can get the system date in a few lines of code? any ideas? Thanks Ehsan Behboudi
If using MFC,
COleDateTime dt = COleDateTime::GetCurrentTime();
Regards, Alvaro
He who laughs last, thinks slowest.
-
Hi, I would like see if I can get the system date in a few lines of code? any ideas? Thanks Ehsan Behboudi
Its very Simple. SYSTEMTIME systime; GetLocalTime ( &systime ); then systime.wDay is the Day systime.wMonth is the month and systime.wYear is the year. itn't it cool ? ;) Best Regards, Jijo. The nice thing about standards is that there are so many of them to choose from.