How can i compare 2 Dates

Discussion in 'Questions (Windows Mobile)' started by Fontanus, May 4, 2007.

  1. Fontanus

    Fontanus Member Licensed User

    How can I compare two date values? I would like to determine and store the greatest value.
  2. Cableguy

    Cableguy Expert Licensed User


    First You have to convert the date back to ticks:

    T = DateParse ("01/30/2012")

    Then compare both results, the newer date will be the greater
  3. RandomCoder

    RandomCoder Well-Known Member Licensed User

    You first need to convert to the tick value of the date and then determine which is greater. See quote of B4PCC help file below.

    Looks like CableGuy got in first ;-p

  4. Fontanus

    Fontanus Member Licensed User

    Thanks for the fast answer. It works fantastically.


  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice