Click here to Skip to main content
14,880,436 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

Kindly guide me How I can show the Datetime in Dtpicker from a database.

Where as data stored in a database in Datatime feild.

Kindly guide me.
Posted

1 solution

You could refer below link for datepicker control operation.

http://www.builderau.com.au/program/vb/soa/Learn-how-to-use-the-DateTimePicker-control-in-VB-NET/0,339028462,339281457,00.htm[^]

Inside the article you will find the variable Now, There put your database retrived date value by casting it to DateTime object.

Please Vote and Accept answer if it helped.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900