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.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Formatting Date Parameters

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?

Regards
Sauce1979

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.
Go to Top of Page

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?
Go to Top of Page

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 DateCol
from your table
order by datecolumn


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -