How I have compare date?

Discussion in 'Questions (Windows Mobile)' started by epatrik, Sep 20, 2007.

  1. epatrik

    epatrik New Member

    How I have compare date?:sign0085:

    If Date(Table2.Cell",1)) >= Date(Calendar4.Value) Then
    End if

    Error description:
    Input stringer was music land and correct form.
  2. Erel

    Erel Administrator Staff Member Licensed User

    Just remove the Date keywords:
    If Table2.Cell(...) >= Calendar4.Value Then
  3. epatrik

    epatrik New Member

    Same problem.

    Calendar4.Format = "dd-mm-yyyy"
    X = "30-09-2007"

    If X >= Calendar4.Value Then
    End If
  4. Erel

    Erel Administrator Staff Member Licensed User

    You need first to convert the string into a date value using DateParse:
    If DateParse(X) >= Calendar4.Value Then...
  5. epatrik

    epatrik New Member

    Much thanks already it steps.
  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