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!

convert from decimal datatype to date

Status
Not open for further replies.

coachvi

Technical User
Nov 19, 2008
111
GH
convert this
yy/mm/dd
20,111,015.00 to date 2011/10/15
 
Try

Date(tonumber(left(totext({Field}),4)),
tonumber(mid(totext({Field}),5,2)),
tonumber(mid(totext({Field}),7,2))

Ian
 
Tweaked:

Date(tonumber(left(totext({Field},0,""),4)),
tonumber(mid(totext({Field},0,""),5,2)),
tonumber(mid(totext({Field},0,""),7,2)))

-LB
 
Good catch LB, forgot about the thousand delimiters.

Shouldn't you be celebrating Thanks Giving and not be on here!!

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top