date parameter issue

  • 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.

  • Anyone Any idea on this?

    Thanks

  • you need to convert / cast the field to just a date in the query that populates your parameter.

  • 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

  • PLEASE ADD AS BELOW

    SELECT DISTINCT

    convert (varchar(12), MonthEnding) as MonthEnding

    FROM Sales

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply