Click to See Complete Forum and Search --> : Date operations


pranay
May 18th, 1999, 02:26 AM
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.

Lothar Haensler
May 18th, 1999, 03:19 AM
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.

Franky Braem
May 18th, 1999, 09:19 AM
You could use COleDateTime.