Is there any data type/ class on visual c++ like date. I could find CTime which i think is a timestamp. I want to use arithmatic operations, comparisions on date. How to use manipulations on date datatype.
Printable View
Is there any data type/ class on visual c++ like date. I could find CTime which i think is a timestamp. I want to use arithmatic operations, comparisions on date. How to use manipulations on date datatype.
from the docs:
"A CTime object represents an absolute time and date. "
you can do all types of arithmetic operations with two CTime objects. The Result is a CTimeSpan object.
check out the operators that are defined for the CTime class.
You could use COleDateTime.