Quantcast
Viewing all articles
Browse latest Browse all 26374

How to save selected date with time in proper format in sql table?

Hi All,

I have a textbox control with calender control . So we can select the date from calender control to textbox control . I have a sql table with coumn name "SubmitDate" type "DateTime". But when I save selected date from textbox control into sql table then its not saving in proper format. I want the format like:-

10/22/2012 5:20PM   (Here:-  10/22/2012 is my selected date from calender control and 5:20PM   is current saving time. Please help me out in this.

Thanks,

Vishwa


Viewing all articles
Browse latest Browse all 26374

Trending Articles