TheMagikWand
Technical User
hey guys/gals,
im working on CR v8.5 and came across this "date" problem. In my database dates are stored as a # field such that...
60,203.00 corresponds w/ 6/02/03.
i have a report to do today and i need to get my dates to look like the latter, but i cannot use the numbertodate(x) function because the dates arent stored as CCYYMMDD.
i made a long winded formula using the totext function to just grab 1 or 2 #'s at a time, but the formula is lengthy and i dont know if it will hold up for every date, anyone have any suggestions???
Thanx,
B U D
ps. heres my formula:
if {field}<100000 then
"0"+
left(totext({field}),1)+"/"+
mid(totext({field}),2,1)+
mid(totext({field}),4,1)+"/"+
mid(totext({field}),5,2)
else if {field}>=100000 then
left(totext({field}),2)+"/"+
mid(totext({field}),3,1)+mid(totext({field}),5,1)+"/"+
mid(totext({field}),6,2)
im working on CR v8.5 and came across this "date" problem. In my database dates are stored as a # field such that...
60,203.00 corresponds w/ 6/02/03.
i have a report to do today and i need to get my dates to look like the latter, but i cannot use the numbertodate(x) function because the dates arent stored as CCYYMMDD.
i made a long winded formula using the totext function to just grab 1 or 2 #'s at a time, but the formula is lengthy and i dont know if it will hold up for every date, anyone have any suggestions???
Thanx,
B U D
ps. heres my formula:
if {field}<100000 then
"0"+
left(totext({field}),1)+"/"+
mid(totext({field}),2,1)+
mid(totext({field}),4,1)+"/"+
mid(totext({field}),5,2)
else if {field}>=100000 then
left(totext({field}),2)+"/"+
mid(totext({field}),3,1)+mid(totext({field}),5,1)+"/"+
mid(totext({field}),6,2)