Hi I'm trying to format a string
so that I am able to get the system time to be HH:MM:SS:MM(Milliseconds)
I've written this
SYSTEMTIME time;
GetLocalTime(&time);
line.Format("%02d:%02d:%02d:%02d \n" ,time.wHour, time.wMinute, time.wSecond, time.wMilliseconds);
My problem is I get something like this for example: 10:17:30:210
I really don't want the 3rd digit on the millisecond how can I truncate it to only two?