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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Date formatting

Status
Not open for further replies.

rubinap

Programmer
Aug 26, 2005
6
CA
Hi,

I am using Crystal Reports 9.0. I am accepting a date as a parameter & want to convert it to a number - (AS400- Database ) 'YYYYMMDD' - how do I do it?

the date format is 8/30/2005 - I cannot use mid function as the month can be 8 or 10 .. Is there anyother way of working around this?


Rubina
 
You could use:

tonumber(totext({table.date},"yyyyMMdd"))

-LB
 
Sorry, that should have been:

tonumber(totext({?date},"yyyyMMdd"))

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top