Jun 6, 2005 #1 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.
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.
Jun 6, 2005 #2 Naith Programmer Joined May 14, 2002 Messages 2,530 Location GB 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 Upvote 0 Downvote
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
Jun 6, 2005 Thread starter #3 jnsimex Technical User Joined May 3, 2005 Messages 6 Location CA It worked like a champ. Thanks Naith. Upvote 0 Downvote