"Giap" <Gi*********@mail.codecomments.com> wrote in message
news:Gi*********@mail.codecomments.com...
i would like to use date and time to name as my file name..
But how can i retrieve a Date and Time??
For example, now is 30/1/05(dd:mm:yy) , 13.06.30(hh:mm:ss)
i would like to name my file as 050130130630.txt
So how can i do that?
You can get the binary components of the time and date by calling
GetLocalTime() or GetSystemTime() if you want UTC.
It is for as simple a displayable format as you have, but you can use
GetDateFormat() and GetTimeFormat() to format the binary data.
Regards,
Will