Difference between revisions of "Date and Time formats in Content Manager OnDemand"

m
Simplified DB2 SQL date functions for IBM CMOD dates
m (Added section on IBM CMOD timestamp conversion in Excel.)
m (Simplified DB2 SQL date functions for IBM CMOD dates)
Line 65: Line 65:
You can use this function to get a date from a timestamp field:   
You can use this function to get a date from a timestamp field:   


   date(TIMESTAMP('1970-01-01-00.00.00.000000') + int(max(RPT_TIME)/86400) days )
   date('1970-01-01') + RPT_TIMESTAMP SECONDS


And this function to get a date from a date field:
And this function to get a date from a date field:


   date(TIMESTAMP('1970-01-01-00.00.00.000000') + int(max(RPT_DATE)) days )
   date('1970-01-01') + RPT_DATE days


== IBM CMOD Dates in Excel ==
== IBM CMOD Dates in Excel ==