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

    Hi,

    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

    Regards,
    RandomCoder
     
  4. Fontanus

    Fontanus Member Licensed User

    Thanks for the fast answer. It works fantastically.

    Greeting

    Fontanus
     
Loading...