[how to] Convert GMT timestamp into excel date
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please
Author Message
robinm
Newbie


Joined: Jun 15, 2010
Posts: 2

PostPost subject: [how to] Convert GMT timestamp into excel date
Posted: Tue Jun 15, 2010 7:43 am
Reply with quote

I have an excelsheet where I have imported tables from stories table. In this table there is a date who looks like this: 1159164181.

Can anyone tell me how i can convert this to a excel date number og date format?

If anyone have a function who allready do this, I'll be very happy. Very Happy

Best regards
Robin


robinm's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
linux/8
Back to top
View user's profile Visit poster's website
Kendle
500+ Posts Club


Joined: Dec 16, 2004
Posts: 529

PostPost subject: Re: Need help to convert the number in sql to excel date
Posted: Tue Jun 15, 2010 11:41 am
Reply with quote

Enter =(A1/86400)+25569 into the cell where you want to display the date, where "A1" is the cell containing the timestamp, then format the cell as a date.

You might need to add / subtract a number of seconds for your timezone, as this will give you a GMT date / time.

_________________
Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Kendle's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website
robinm
Newbie


Joined: Jun 15, 2010
Posts: 2

PostPost subject: Re: Need help to convert the number in sql to excel date
Posted: Tue Jun 15, 2010 11:48 am
Reply with quote

It works, thanx.

Big grin


robinm's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
linux/8
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer


Joined: Jun 29, 2004
Posts: 3676
Location: Melbourne, AU

PostPost subject: Re: [how to] Convert GMT timestamp into excel date
Posted: Wed Jun 16, 2010 8:29 am
Reply with quote

Thanks
_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
MySQL 5.1 / PHP 5.3 / NextGen()
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexExplain Please All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

stopsoftwarepatents.eu petition banner
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 0.4674 seconds with 19 DB Queries in 0.0579 seconds
Memory Usage: 2.88 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy