Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Microsoft Automation (Serial) Date conversion in PHP

Posted on 2008-10-03
2
Medium Priority
?
483 Views
Last Modified: 2012-05-05
I have a database listed with dates in Serial Format that were generated by Excel example 10/3/08 = 39724

I now have to display these dates on a web page. But I have no idea how to convert 39724 back to 10/3/08 in PHP. Anyone have any ideas?
0
Comment
Question by:SaltyDawg
2 Comments
 
LVL 6

Accepted Solution

by:
deresh earned 2000 total points
ID: 22636768
this number represents number of days from  1. January 1900. so for example excel date 15 is translated to 15.Jan.1900 etc..



http://www.codeproject.com/KB/datetime/exceldmy.aspx

if should be trivial to rewrite this to php

0
 
LVL 1

Author Comment

by:SaltyDawg
ID: 22636926
Ok it should be pretty simple to write code for that. Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

926 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