c_shelswell Posted February 5, 2007 Share Posted February 5, 2007 I've been given a database where they've decided to put the date of birth as a timestamp. They've delt with dates prior to 1970 by using negative numbers. I'm trying to convert them back to real dates is there and easy way of converting the negative numbers back? Cheers Quote Link to comment Share on other sites More sharing options...
richardw Posted February 5, 2007 Share Posted February 5, 2007 Try using substr, this works for me $daystring = $row["birthdate"]; $month = substr($daystring, 4, 2); $day = substr($daystring, 6, 2); $year = substr($daystring, 0, 4); Best, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.