The syntax isnt the problem, I simply dont know the C++ equivilant to the DateDiff function. I checked the msdn and found the CTime stuff to be a little confusing. And yes you are right I do need to order a book, I'll check amazon later today.