|
|
Question : SSRS FormatDateTime
|
|
Hi,
I am using
=FormatDateTime(Fields!myDate.Value,dateformat.shortdate) and it is returning "MM/DD/YY"
My reginal settings are "DD/MM/YY". So why is it returning "MM/DD/YY"??
I have other reports developed at the same time on the same pc, 100% exactly the same that use =FormatDateTime(Fields!myDate.Value,dateformat.shortdate) and correctly return "DD/MM/YY"
Any ideas how to correct please, what the cause is?
Thanks
nutnut
|
Answer : SSRS FormatDateTime
|
|
Dates aren't always handled properly in the preview tab. Microsofts designers in RS always seem to have a bit of a blind spot when it comes to international date formats! You may find it works when deployed.
Failing that, just check how you've typed DateFormat.ShortDate. .Net is case sensitive, so dateformat.shortdate wouldn't work.
|
|
|
|
|