Date format in parameter

Posted on 2008-02-11
Medium Priority
Last Modified: 2012-05-05
In my report I am filtering results depending on a date, I have the default language of my report set to en-AU, however my parameters fail to recognise a date such as 27/11/2007 and displays an error message, however if I change the date to 11/27/2007 it filters the results correctly.

The actual date which appears in my results is formatted correctly, and as soon as I run the report it switches the entry in the parameter field to the right format as well.

Is there anything I can do to rectify the format in the parameter value?
Question by:AWSHelpdesk
  • 3
LVL 26

Expert Comment

ID: 20872195

Author Comment

ID: 20872258
This is similar to my issue, and I am already using this line to format the date parameter after the report is run in a text box at the top of the report, and it works fine;

= IIF(Format(Parameters!sale_date.Value,"dd/MM/yyyy")<>"","Sales by Agent for " & Format(Parameters!sale_date.Value,"dd/MM/yyyy"),"")

But the issue comes when I type for example 27/11/2007 (dd/MM/yyyy format) into the date parameter field and it errors. but if i type 11/27/2007 it runs the report fine and automatically switches the date to 27/11/2007 in the parameter field?
LVL 26

Accepted Solution

ee_rlee earned 1500 total points
ID: 20872327
i think you would have to set your parameter to string then convert it to date/time.
LVL 26

Expert Comment

ID: 20872334
LVL 18

Expert Comment

ID: 20873513
The format is controlled by the server settings. If you change your SQL Server instance to be en-AU then the date parameters will all show correctly.

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

624 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