Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQl Server Specific response

Status
Not open for further replies.

gansr

Programmer
Jul 20, 2002
2
SG
Hi,

I am a Newbie to BO and if this is silly and simple pls forgive me.

I have created a few reports and these reports take atwo dates as arguments for the query.

The date format is given as mm/dd/yyyy but now the users need to enter the format as dd/mm/yyyy. How do i achieve this.

I tried changing the format in the Regional Options but still i am getting the error date format returns invalid date range.

My Database is SQL Server :( my language setting there are US_ENGLISH

Will really appreciate if omebody can give me some solution or useful insights into this problem.

Thanks.

Regards,
Ganesh R

 
Have you the abiity in SQL server to wrap the date up in a format mask? I am an Oracle user and I could do something like this


Select * from Table
Where to_date(tabledatcolumn,dd/mm/yyyy)= '31/01/2002'

What I am suggesting is can you use a built in SQL Server function to alter the format of the date on one side of the equation to agree with the format on the other side of the equation?
 
Hi Paul,

Thanks for the Repsonse.

I am also an oracle user so i was sort of stumped with this SQL Server Stuff.

Anyways there is nothing in sql server like that. I solved this problem by specifying a New LOV which allowed for dd/MM/yyyy.

Thanks once again for the response.

regards,
Ganesh R
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top