comparing the last looged date with the system date

Hi

I am doing work related to logging my objective is to compare the last logged date with the current date,if the last log day is smaller than current dayi want to close the existing file and create a new log file,while giving suggestions you could think of filename passed in the constructor.

In my work i have a filelogger that creates a text file and the current date and time are stored are stored in the file as :-

"2012-03-26T15:05:24.844Z",now the problem is how to get the last logged date and the system date and to make a comparision among them,also this format i have used stringstream sdatestream and sdatestream is converted to string.

awating an earliest reply

thanks

varun
Topic archived. No new replies allowed.