all groups > sql server reporting services > july 2007 >
You're in the

sql server reporting services

group:

2005 Datepicker control and dateformat


2005 Datepicker control and dateformat MarkusJNZ NO[at]SPAM gmail.com
7/5/2007 2:50:14 PM
sql server reporting services:
Hi, we have an installation of MSSQL reporting services where users
can select data based on date ranges. Since upgrading to 2005 we now
have a nice new Date picker control alongside textareas which accept
MSSQL datetime values.

This is all very nice but the date picker automatically formats the
date to US format mm/dd/yyyy. We need it to be in dd/mm/yyyy format.
I
have checked the regional settings of both the browser/ server etc.


Scouring the Internet seems to point that this is a post SP2 problem
but there seems to be no fix other than making the datefields a type
of nvarchar and then converting them to dates in the Stored
Procedure.


If there really is no fix, how can I just disable this date picker
control? In 2000 people just entered the dates manually, this was
fine
but know there is a date picker control people are obviously going to
use it.


Thanks
Rex
Re: 2005 Datepicker control and dateformat MarkusJNZ NO[at]SPAM gmail.com
7/5/2007 8:17:42 PM
[quoted text, click to view]

Hi Enrique, thanks for your help. I have found a fix which seems to
work so I'm posting here to help anyone in the future who comes across
the problem.

In the folder where Reporting Services is installed fin a file called
ReportView.aspx

e.g.

c:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services
\ReportServer\Pages\ReportViewer.aspx

Open up this file and add the following to the Page Directive

Culture="en-AU"

This seemed to solve my problem

Regards
Rex
Re: 2005 Datepicker control and dateformat EMartinez
7/6/2007 12:00:00 AM
[quoted text, click to view]


Very nice tidbit to know. So basically, that manually changed your
regional settings I guess.

Regards,

Enrique Martinez
Sr. Software Consultant
Re: 2005 Datepicker control and dateformat EMartinez
7/6/2007 12:54:22 AM
[quoted text, click to view]


Aside from the workarounds you have attempted, that is also all I can
think of. If I understand you correctly, to remove the date time
picker in a specific report you would just select the Layout view ->
Report drop-down tab -> Report Parameters... and select the parameter
you want to remove the date time picker for and then change the Data
type: to something other than DateTime. Hope this helps.

Regards,

Enrique Martinez
Sr. Software Consultant
AddThis Social Bookmark Button