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

Thread: Compares dates

  1. #1
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    140

    Compares dates

    How do i compare 2 dates with the format "dd\mm\yy"?


  2. #2
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Compares dates

    suppose we have date1 and date2:

    a=format(date1,"yyyymmdd"
    b=format(date2,"yyyymmdd"
    if a>b then max=a else max=b




    Michael Vlastos
    Automation Engineer
    Company SouthGate Hellas SA
    Development Department
    Athens, Greece

  3. #3
    Join Date
    Jul 1999
    Location
    Athens, Hellas
    Posts
    769

    Re: Compares dates

    I can say I am a "date specialist". Ask me whetever you need about dates. I have a lot experience on such subject... Maybe I can help you. Did it work for now?

    Michael Vlastos
    Automation Engineer
    Company SouthGate Hellas SA
    Development Department
    Athens, Greece

  4. #4
    Join Date
    Jul 1999
    Location
    Israel
    Posts
    140

    Re: Compares dates

    Thanks for your help!. It helps me althought I found the "DateDiff" function which also do the work.
    If I will have more questions about dates I will not hesitate to ask you directly!
    anyway thank you.



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