Need Help: MFC Date and Time
-
Hi, I have a problem with the COleDateTime class. I have no idea how to do subtraction and addition for two COleDateTime objects. I am used to the VB type of time and date addition and subtraction. Is there a way to do subtraction and addition as in VB date/time? By the way is there an equalvalent date/time method in VC that is similar to the one in VB? Your help is greatly appreciated. :confused: leonwoo
-
Hi, I have a problem with the COleDateTime class. I have no idea how to do subtraction and addition for two COleDateTime objects. I am used to the VB type of time and date addition and subtraction. Is there a way to do subtraction and addition as in VB date/time? By the way is there an equalvalent date/time method in VC that is similar to the one in VB? Your help is greatly appreciated. :confused: leonwoo
Look at the COleDateTimeSpan class and operators +,-,+= and -= defined in COleDateTime. Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***