Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Date validation?

Date validation?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionworkspace
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TalSt
    wrote on last edited by
    #1

    Do you know how to check date validation? I use COleDateTime and at environment without VS7 - it is wrong!!! Do you know other calss for VC7 to check that? 1900-02-31 - wrong, 1900-02-28 - OK. Thanks!!! ;)

    D 1 Reply Last reply
    0
    • T TalSt

      Do you know how to check date validation? I use COleDateTime and at environment without VS7 - it is wrong!!! Do you know other calss for VC7 to check that? 1900-02-31 - wrong, 1900-02-28 - OK. Thanks!!! ;)

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      TalSt wrote:

      Do you know how to check date validation?

      Several ways exist. There's the COleDateTime class, and functions like mktime().

      TalSt wrote:

      I use COleDateTime and at environment without VS7 - it is wrong!!!

      How so?

      TalSt wrote:

      Do you know other calss for VC7 to check that? 1900-02-31 - wrong,

      Are you implying that some functon is stating that 1900-02-31 is a valid date?

      "Love people and use things, not love things and use people." - Unknown

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups