system date

wild wolf
01-25-2002, 12:59 AM
can someone get me the code on how to get system date, one option is below according to MSDN library but quite complex to understand, maybe someone could elaborate it more



int GetDateFormat(
LCID Locale, // locale
DWORD dwFlags, // options
CONST SYSTEMTIME *lpDate, // date
LPCTSTR lpFormat, // date format
LPTSTR lpDateStr, // formatted string buffer
int cchDate // size of buffer
);

Keltus
01-28-2002, 03:04 PM
that function just formats the date

use the Win32 API GetSystemTime function

wizxzard
03-19-2002, 01:53 PM
im not quite sure wot you ment but if your looking to simply display day and date then cout<<__DATE__<<endl;
if thats not wot your looking for please explain in more detail and ill try and help.thanx
wizxzard:D :p :o

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum