Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Crystal Report > Database Expert > Command > Date Conversion

$
0
0

An example is 1354385354, which converts to 12/01/2012. The full line of code we use in another SQL based program is, with Modified being the name of our numeric variable:

 

   TO_DATE(((TO_DATE('01-JAN-1970','DD-MON-RRRR')) + ((MODIFIED/86400) + (-7/24))),'DD-MM-RRRR')

 

In my research though, forums and discussions talk about how TO_DATE and TO_CHAR do not work in the Crystal Reports SQL statement. Thus far, the string below functions, even though it translates to 11/30/1942 instead of the correct date

 

   ((MODIFIED/86400) + (-7/24))

 

although when I add in the TO_DATE command in Crystal

 

    TO_DATE(((MODIFIED/86400) + (-7/24)),'DD-MM-RRRR')

 

then the error in the prior post occurs.


Viewing all articles
Browse latest Browse all 9159

Trending Articles