This is a migrated thread and some comments may be shown as answers.

Converting date format

0 Answers 92 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
sigbenu
Top achievements
Rank 1
sigbenu asked on 13 Aug 2010, 09:00 AM
pls i have having serious problem with my application.whenever any transaction takes place,it records the date the transaction took place in this format,04/08/2010(mm,dd,yyyy).from the client end they are suppose to be able to view report for all transaction ,but the problem is that the rad date picker brings out the date in this format
4/8/2010 12:00am but i was able to use this code RadDatePicker1.SelectedDate.Value.ToShortDateString(); to get only the date.what i need is for the date value gotten from this rad date picker to be in the same format with the first one ,that is 04/08/2010 must be in the same format as 4/8/2010. i have tried using SELECT CONVERT(CHAR(10),4/8/2010,110) it didnt work.what sql code do i use.

No answers yet. Maybe you can help?

Tags
DatePicker
Asked by
sigbenu
Top achievements
Rank 1
Share this question
or