|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 9:29 AM
Points: 71,
Visits: 1,070
|
|
Hi I have created a parameter with a called MonthEnding that has a datatype Date/Time. In my report parameter properties i have ticked the box to Allow Multiple Values.
However when i view the report in the browser and go to select a month, the month format is as follows: 28/02/2013 00:00:00
Is it possible to change the format to be 28 Feb 2013? The report parameters properties dont seem to have any options to be able to change this.
In the database table the month format is as follows: 2013-02-28
Thanks for you help in advance.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 9:29 AM
Points: 71,
Visits: 1,070
|
|
Anyone Any idea on this? Thanks
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 6:39 AM
Points: 159,
Visits: 2,205
|
|
| you need to convert / cast the field to just a date in the query that populates your parameter.
|
|
|
|
|
Valued Member
      
Group: General Forum Members
Last Login: Today @ 9:29 AM
Points: 71,
Visits: 1,070
|
|
Thanks for you suggestion Scott. I have added the following and it seems to do the same thing:
SELECT DISTINCT CONVERT(DATETIME, MonthEnding, 106) AS MonthEnding FROM Sales
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Saturday, May 18, 2013 8:24 PM
Points: 7,
Visits: 46
|
|
PLEASE ADD AS BELOW
SELECT DISTINCT convert (varchar(12), MonthEnding) as MonthEnding FROM Sales
|
|
|
|