How to transfer a Date or a time string to a double variable?
for example, transfer "2012-06-06 12:32:12" to a double, and then I can use it to set the axis of my graph. Thank you!
已解决! 转到解答。
How to ? How to ?
Convert to TimeStamp first, then typecast to double.
Thank you! In the Measurement Studio for VS2008, conveting date to double is very simple through CTime or COleTime Class. Get the seconds of a date, and then divided it by 24*60*60 ( namely total seconds of a day), the result is a doble, and you can use it to set the axis of a graph .