Majid Bhutta

Majid Bhutta

  • NA
  • 10
  • 0

How to save Only Time form DatetimePicker?

Nov 21 2005 8:33 AM

Hello Dears!

i m working with windows Datetimepicker control i have to save the Starttime and Endtime for a scheduled shift.From front end i did it right by setting the following properties of Datetimepicker  Format=Custom and Custom=hh:mm tt but when i save this time in the Sql data base it is saved with complete date and time (In sql i m savind it as DateTime datatype)and when i retrieve it in a list view from database in start and end time Date is also mentioned that i dont want. Is there any way to display or save only the Time irregard of its Date.
Thnx in advace!


Answers (1)