Posted by Bruno Rafael Moreira de Barros on 11/29/07 11:56
If I type in:
$timestamp = 20050714010317;
echo date('Y m d H i s', $timestamp);
Then it returns:
2038 01 18 22 13 44
---
Then
$timestamp = 20050714010317;
$date = date('Y m d H i s', $timestamp);
$splitted_date = explode(' ',$date); // This is now an array
containing all the date parts.
echo $splitted_date[0]; // Prints the Year part of the date.
[Back to original message]
|