Announcement

Collapse
No announcement yet.

VarDateFromStr

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

  • Scott Turchin
    replied
    Let me also note that this function worked PROPERLY in 1999, in 2000 it stopped working.


    Scott

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

    Leave a comment:


  • Scott Turchin
    replied
    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).]

    Leave a comment:


  • Eric Pearson
    replied
    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>

    Leave a comment:


  • Scott Turchin
    started a topic VarDateFromStr

    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
Working...
X