CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    12

    Date Validate MFC/C++

    Hi is there any method which validates the date, time
    ie say if i enter date as 2008.11.10 it should return true,
    it should accpet varoius other formats
    like 2008/11/11 or 2008-10-11 etc..


    Thanks in Advance

  2. #2
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Date Validate MFC/C++

    Have a look at the COleDateTime clss and its methods:
    ctors
    COleDateTime::ParseDateTime
    COleDateTime::GetStatus
    COleDateTime::Format
    Victor Nijegorodov

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