Calendar Problem!

Discussion in 'Questions (Windows Mobile)' started by superbabicka, Apr 5, 2008.

  1. superbabicka

    superbabicka Member Licensed User

    Hi,

    I want to feed (pump) Calendar vith the value from database like:

    Today is 05.04.2008 - "dd.mm.yyyy"
    so, in my database Date Of Birth is 05.03.1977.

    How to change value on Calendar, reading from database...?

    Will be: Calendat.Value = dr.GetValue(12) - where DR is Reader, and (12) is Date_Of_Birth

    Any Idea?
    Thanks!
     
  2. alfcen

    alfcen Well-Known Member Licensed User

    Hi,
    Please try with:
    Calendar.Value = DateParse(dr.GetValue(12))

    Make sure that the calendar control is set to the same format string
    as your DB date entry or vice-versa.
     
  3. superbabicka

    superbabicka Member Licensed User

    Yes!

    Thank you .

    I found tick in my database :)

    625988845655213352000000000 million numbers

    What is this numbers?
    Days?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

Loading...