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

Thread: Date Validate MFC/C++

  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 offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,359

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center