Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Formatting a date field to just show the date, not minutes.

$
0
0
HelloA date field in a report returns the date value as:[b]2015-07-01 13:30:27.000[/b]Is there any way I can script this to appear as:01 July 2015 (or 01-07-2015 or 01/07/2015) - basically to cut out the hours, minutes and seconds?The best I have managed is: CONVERT (varchar(17),DATE,113) AS Date1 but this still leaves me with:01 July 2015 13:30Any expertise in solving this would be very welcome. I can tidy it up in SSRS, but would love to script it instead.Thanks.

Viewing all articles
Browse latest Browse all 2791

Trending Articles