funvill
asked on
Converting a COleDateTime to and from a string
Hello experts
I have a string that I download from a database which holds a date
1039046400000 (the number of seconds from 1970)
I want to convert this string to a COleDateTime variable
After I do some work on the COleDateTime variable I want to convert it back in to a string ( the number of seconds from 1970 ).
My question is
How do I convert COleDateTime object to and from a string which contains the number of sec since 1970 ?
thank you for your time
I have a string that I download from a database which holds a date
1039046400000 (the number of seconds from 1970)
I want to convert this string to a COleDateTime variable
After I do some work on the COleDateTime variable I want to convert it back in to a string ( the number of seconds from 1970 ).
My question is
How do I convert COleDateTime object to and from a string which contains the number of sec since 1970 ?
thank you for your time
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops... I didn't read the question carefully.
ASKER
Thank you mnashadka
it works great
it works great
COleDateTime::Format()
2. string --> COleDateTime
COleDateTime::ParseDateTim