Get the Date

How do I get the date? I want the number of the current day storaged in a integer.
sshuloAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
galkinConnect With a Mentor Commented:
If you are using Visual C++ you can take advantage of MFC CTime class.

CTime time = CTime::CurrentTime();

Than you can use CTime members GetDay(), GetHour() etc. to get all time parameters
0
 
yonatCommented:
try gmtime() or localtime()
0
 
sshuloAuthor Commented:
Thanx..but to create an CTime object the code should look like this:
CTime time = CTime::GetCurrentTime();



0
All Courses

From novice to tech pro — start learning today.