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

convert to a date

Status
Not open for further replies.

Paul1981

IS-IT--Management
Jun 30, 2006
36
GB
Hi,

I'm using Crystal Reports XI and have a number field which is:

20071213
YYYYMMDD

how do I make this into a date field crystal will reconise?

Thanks
Paul

 
Create formula

date(tonumber(left(totext(20071213,0,""), 4)), tonumber(mid(totext(20071213,0,""), 5,2)), tonumber(right(totext(20071213,0,""), 2)))


replace 20071213 with your number field.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top