I’ve exported a database (I need the data for a report) we have a ‘start date’ which is the start date of each project, but in MYSQL it isn’t showing a date but instead a random number, it must say the date in some way because the tasks seem to go in order and the numbers change accordingly.
Can anybody tell me how to work out the date from the numbers, an example is below:
1337156712
and another:
1321443614
Any help will be great thanks!
OK I am using this PHP script to change the dates:
<?php
$TimeStamp = "1185422400";
$Time = date("m-d-Y", $TimeStamp);
echo $Time;
?>
Can somebody help me turn it into an array so I can include around 500 dates and convert them all at once?
Thanks
Ricky
Assuming your number is a Unix timestamp,
FROM_UNIXTIME()will give you a formatted date you can use withDATETIMEfields:There are plenty of other time functions available, all of which are listed here.