?
Solved

SSRS 2005 Date Picker Parm Problem

Posted on 2011-02-11
7
Medium Priority
?
838 Views
Last Modified: 2012-08-14
Using Date Picker in 2 of my report parms (From Date  To Date).  
It works fine in the USA as mm/dd/yyyy. User picks From and To dates, report runs and records appear. Great...

But now, when they do the same thing,  but from a Canadian location (which has date form as dd/mm/yyyy,  the Date Picker fails when they chose a date range of 22/12/2010 to 25/12/2011. You get back a error saying the value in box is in valid. It is looking at the date as mm/dd/yyyy when they execute report, and there is no month 22 or 25.

Do not understand why the Date Picker is confused. It presents the date as dd/mm/yyyy but then edits it against the format of mm/dd/yyyy and gets confused and errors out. FRUSTRATING..

Any easy way around or do I have to just make the 2 date fields as strings and tell user to key in date as mmddyy and not use the date picker option ?
0
Comment
Question by:thayduck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 11

Expert Comment

by:rajvja
ID: 34870871
Or,

   You can change the default date format in the system settings.
0
 

Author Comment

by:thayduck
ID: 34870954
Not sure what you mean.

How do you do that ?

I want report to run properly whether it is run from USA or Canada.

I have no control over Report Server...
0
 
LVL 11

Expert Comment

by:rajvja
ID: 34870962
oh ok.

In that case, better you place the two text boxes and ask the user to input dates in the specific format.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 27

Expert Comment

by:planocz
ID: 34873760
One way would be to change your query so that you know if you are in the usa or canada.
Then adjust your date picker for that country.
0
 

Accepted Solution

by:
thayduck earned 0 total points
ID: 34883028
Looks like you have no control over the SSRS 2005 date picker other than using it in one of your report parms.

Anyways, I converted this report to SSRS 2008 as a test and it eliminated this problem. Now if I run this report from US (mm/dd/yyyy) or Canada (dd/mm/yyyy)  the report date picker parm works without any incidents.

I will close out this question without awarding any points and make a decision to convert to SSRS 2008 or go with my other suggestion about having my own date textboxes.  
0
 

Author Comment

by:thayduck
ID: 34883052
There was no resolution to this problem, that is why I did not award points.


0
 

Author Closing Comment

by:thayduck
ID: 34924211
Thanks for everyones input.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question