I have a requirement in c++, which I have to read a file which consists date and time and convert it to unsigned __int64
.
For example I have a file "mytime.txt" with following data.
2012-06-25 05:32:06.963
How do I convert it to unsigned __int64
, and how do I convert back from unsigned __int64
to the above string to write to file and also to verify it is converted to unsigned __int64
correctly.
I am working on windows in VS.NET C++ compiler.
I am not supposed to use boost
.