Calendar Problem!

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!
 

alfcen

Well-Known Member
Licensed User
Longtime 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.
 

superbabicka

Member
Licensed User
Yes!

Thank you .

I found tick in my database :)

625988845655213352000000000 million numbers

What is this numbers?
Days?
 
Top