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

String Date to Date Field 1

Status
Not open for further replies.

Penny001

Programmer
Feb 20, 2008
17
US
I am having a problem making a String Date field to a true Date field so I can compare with other dates.

I'm using Crystal 7.

I've tried DSToDate and the new field appears to be a date field but there is no data in it.

Please help....
 
Not sure what functions are avaialable in CR 7 as its over 10 years old!!

But this should work, create formula

@Date

Date(tonumber(left(DateString,4)), tonumber(mid(DateString,5,2)), tonumber(right(DateString,2)))


Ian

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top