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

Date Format

Status
Not open for further replies.

jnsimex

Technical User
Joined
May 3, 2005
Messages
6
Location
CA
Hi All,

I am trying to convert this number 20001231.00 in an Accpac date field to a date format such as 12/31/2000 in Crystal Reports.

I tried using cdate but it returns an error.

Thanks in advance.




 
Either download the NumberToDateUFL from the Business Objects website, or use something like:
Code:
StringVar YY := (Left(ToText(YourDate,0,""),4));
StringVar MM := (Mid(ToText(YourDate,0,""),5,2));
StringVar DD := (Right(ToText(YourDate,0,""),2));

Date(Val(YY),Val(MM),Val(DD));
Naith
 
It worked like a champ.

Thanks Naith.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top