How to convert DATE data type to a formatted string in UTC without using the library class
COleDateTime. I do not have ATLComTime.h on my system
I would like to pass it as a DATE data type and return a string in ‘yyyy-mm-ddThh:mm:ssZ’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
VariantTimeToSystemTime then use the SYSTEMTIME structure to format a string.
There is no timezone information in a DATE. It just counts the number of days since midnight December 30, 1899.