all groups > sql server reporting services > february 2006 >
You're in the

sql server reporting services

group:

Date formatting very flakey



Date formatting very flakey jhcorey NO[at]SPAM yahoo.com
2/20/2006 8:03:22 AM
sql server reporting services: We have a couple of dates displayed on our report.
The first comes from a string in our code, and I have a format
of 'mm/dd/yyyy'

The second comes from Globals!ExecutionTime, and I have a format of 'd'

These both display the way we want (which is with leading zeros) when
we stream the report to Excel.

But when we use the ReportViewer control, or when we stream the report
to html, we get strange stuff, like

00/03/2005 (s/b 09/03/2005) in the first case,
and

42/20/2005 (s/b 02/20/2006) in the second case. (Particularly
perturbing, since this is an RS global)
Re: Date formatting very flakey Dan
2/20/2006 12:15:56 PM
Does using a capital m work properly? The lowercase m is for minute.
Check to see if "MM/dd/yyyy" works properly. I haven't had a problem
with the formatting and would be inetersted if this solved your
problem.


Regards,

Dan
Re: Date formatting very flakey jhcorey NO[at]SPAM yahoo.com
2/21/2006 5:45:08 AM
Ahh..much better, thanks!
AddThis Social Bookmark Button