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

How can i convert a unix date to a regular date

Status
Not open for further replies.

Jamrock97

Programmer
Mar 4, 2009
3
US
I am using CR XI R2 and connected to fileNet which stores data on Oracle on AIX .. etc.. when creating a report i get the Unix date 14302.00, i need to convert it to the date yy/mm/dd..looking up the conversion on google, it translate the number to 02/27/2009, How can i calculate this in my report. Please help. i have tried this formula but it gives me a date of 02/26/1939 which is wrong.. please help

If IsDate({DOCTABABOCOLD.F_ENTRYDATE}) Then
CDate({DOCTABABOCOLD.F_ENTRYDATE})
Else
CDate(0,0,0)
 
There are plenty of posts on this subject! Use a formula to convert to a date

The latest is from Kskid

dateadd("s",{table.unixnumber},datetime(1970,1,1,0,0,0))


Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top