views:

33

answers:

1

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'

+1  A: 

VariantTimeToSystemTime There is no timezone information in a DATE. It just counts the number of dates midnight since December 30, 1899.

Sheng Jiang 蒋晟