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

String Field to Date in 8.5

Status
Not open for further replies.

prl423

IS-IT--Management
Feb 28, 2006
13
US
I have the following string field (that is a user defined field) and is inputted to the program as 06/23/97

I need to convert this string field to a date field in CR 8.5 this is the format in the db

+000019970623000000 any help on how the formula should be, as I keep getting an error that says non-numeric.

thanks

 
I just tried this and I think this should work for you ({string_field} would be the user defined field you are using with a the date value):

DateValue(ToNumber({string_field}[5 to 8]),ToNumber({string_field}[9 to 10]),ToNumber({string_field}[11 to 12]))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top