How to convert
std::string strdate = "2012-06-25 05:32:06.963";
To some thing like this
std::string strintdate = "20120625053206963" // basically i removed -, :, space and .
I think I should use strtok or string functions, but I am not able to do it, can any one please help me here with sampel code.
so that i convert it to unsigned __int64 by using
// crt_strtoui64.c
#include <stdio.h>
unsigned __int64 atoui64(const char *szUnsignedInt) {
return _strtoui64(szUnsignedInt, NULL, 10);
}
int main() {
unsigned __int64 u = atoui64("18446744073709551615");
printf( "u = %I64u\n", u );
}