all groups > sql server reporting services > march 2005 >
You're in the

sql server reporting services

group:

URGENT: date parameter and regional location


URGENT: date parameter and regional location news
3/4/2005 6:31:09 PM
sql server reporting services: Hi,

I have a report with startdate as a string report parameter formatted
MM/dd/yyyy. It works fine on the computer with regional setting to English
(United Stated) where its date formatted as MM/dd/yyyy. However, the report
parameter changes to dd/MM/yyyy on another computer with regional setting to
English (United Kingdom) where its date formatted as dd/MM/yyyy. The query
to SQL server fails since the date is invalid. How can I fix this? Thanks.

Re: URGENT: date parameter and regional location Brian Welcker [MSFT]
3/4/2005 11:58:09 PM
Is the parameter data type set to date / time? If so, it should work no
matter what the locale is. If you want it to be a specific one, set the
language of the report to the one where you want.

--
Brian Welcker
Group Program Manager
Microsoft SQL Server Reporting Services

This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Re: URGENT: date parameter and regional location news
3/5/2005 1:09:13 AM
Thanks, I changed it to datetime and it works fine.

[quoted text, click to view]

Re: URGENT: date parameter and regional location srinivas
3/17/2005 1:07:05 PM
Hi,

I'm facing the same problem with the dateformats.

I've set the datatype for the report parameter to Datetime. But still
getting the error.

When I try to pass the date in dd/mm/yyyy ( say 16-02-2005) it's woking fine.

But if I change it to 02-16-2005, it's not working. But as you said it
should work in any case.

Please let me know how to solve it.

srinivas

[quoted text, click to view]
AddThis Social Bookmark Button