CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Date operations

  1. #1
    Join Date
    May 1999
    Location
    New Delhi, India
    Posts
    359

    Date operations

    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.

    Whenever I hear "It can't be done", I know, I am close to success!!

  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Date operations

    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.


  3. #3
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Date operations

    You could use COleDateTime.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured