Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

convert a unix time stamp to oracle date formate

Posted on 2006-06-28
3
Medium Priority
?
2,809 Views
Last Modified: 2012-06-27
can we convert a unix time stamp 1151530818 into oracle date formate  jan-22-1987  so that i can use it in my report



0
Comment
Question by:sweetysmile
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 28

Accepted Solution

by:
bdreed35 earned 1000 total points
ID: 17005718
Since the Unix timestamp field is the number of seconds since 1/1/1970, you can create a formula to convert it using the dateadd function:

local numbervar secs := 1151530818; //replace 1151530818 with the unix timestamp field
dateadd("s",secs,date(1970,1,1))

This will return a date field that you can format once you drag the formula onto the report.
If you want it to return a string in the above format you can make your formula this:

local numbervar secs := 1151530818; //replace 1151530818 with the unix timestamp field
totext(dateadd("s",secs,date(1970,1,1)),"MMM-dd-yyyy")
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question