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

Dates & Strings

Status
Not open for further replies.

CNeeds

Programmer
Mar 24, 2004
111
US
I have a string field with a value of "19930419" in my database, in Crystal Report I need to reformat the string as 04/19/1993...Please help& suggestions...Thanks!!! Again, the field is not date field it is a String field.
 
It is best to convert it to a date data type in a formula so that you can use it in other formulas as a date, or format it however you like.

Try this in a formula:
Code:
cdate(val(left({table.date},4)),val(mid({table.date},5,2)),val(right({table.date},2)))

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top