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

seagate crystal reports

Status
Not open for further replies.
convert from varchar[100] type of SQL to number type(ToNumber does not work), this string contains number of days and time to be converted to date time
 
My database has the date as a string, formatted as yyyymmdd. To do a date calculation, I needed to change the string to a number, then change the number to a date.

DATE(ToNumber({Query.RECDATE}[1 to 4]),(ToNumber({Query.RECDATE}[5 to 6])),
(ToNumber({Query.RECDATE}[7 to 8])))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top