Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sauce1979
Starting Member
47 Posts |
Posted - 2009-11-06 : 10:24:14
|
I currently have a report that uses a dataset to create a list of dates for paramater drop down list. Currently the format of the date is dd/mm/yyyy. However I would like the format to be mon-yy e.g. aug-2009. How can I do this. Do I need to alter the format within the dataset query?RegardsSauce1979 |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-11-06 : 10:32:51
|
That would be the fastest way if I should do that. No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
sauce1979
Starting Member
47 Posts |
Posted - 2009-11-06 : 15:58:55
|
If I alter the date parameter in the dataset. How can I sort the dates so that they are in descending order as they are dates will be varchars? |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-11-07 : 07:20:09
|
As an example for your query:select convert(varchar(20),datecolumn,112) as DateColfrom your tableorder by datecolumn No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
|
|
|