Announcement

Collapse
No announcement yet.

VarDateFromStr

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VarDateFromStr

    Definitely worth reading, been beating my head against the monitor for so long now! (Not really..hehe)

    This explains a LOT!
    http://www.microsoft.com/technet/yea...iew15225EN.htm

    ------------------
    Scott
    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

  • #2
    Scott --

    That page is specific to Windows CE, which often has its own rules and unusual limitations. Does the information also apply to 95/98/ME/NT/2000?

    -- Eric

    ------------------
    Perfect Sync: Perfect Sync Development Tools
    Email: mailto:[email protected][email protected]</A>
    "Not my circus, not my monkeys."

    Comment


    • #3
      Yes, in the function description below it, it also stated "This also applies for Windows 95/98/2000"...

      2) In the OLE APIs VarDateFromStr() and VarBstrFromDate() there is an ambiguity between their treatment of 2-digit years. OLE has standardized on an interpretation whereby it assumes that 2-digit years lie in the range 1930-2029 (i.e. it interprets 1/1/30 as 1/1/1930 and 1/1/29 and 1/1/2029). This is the range used by the VarDateFromStr() function which converts a string date into an internal unambiguous data format. This is the same behavior as Windows NT and Windows 95.
      I'm stuck and my head hurts, I'd rather use this function than the j ulian date function which REALLY hurts my head trying to calculate hehe

      Scott

      ------------------
      Scott

      [This message has been edited by Scott Turchin (edited February 21, 2001).]
      Scott Turchin
      MCSE, MCP+I
      http://www.tngbbs.com
      ----------------------
      True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

      Comment


      • #4
        Let me also note that this function worked PROPERLY in 1999, in 2000 it stopped working.


        Scott

        ------------------
        Scott
        Scott Turchin
        MCSE, MCP+I
        http://www.tngbbs.com
        ----------------------
        True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

        Comment

        Working...
        X