|
Posted by Chuck Anderson on 02/04/06 21:51
Bosconian wrote:
>I must be having a brain freeze because I can't figure out how to display
>dates older than 1970.
>
>I have birth dates stored in MySQL as "date" data types (exp. 1955-04-06).
>I'd like to display as "April 4, 1955".
>
>I've tried using date("F j, Y"), but only get "December 31, 1969".
>
>I'm using PHP 4.3.8. Any suggestions would be appreciated.
>
>
>
>
$months = array('', 'January', 'February', 'March', 'April', 'May',
'June', 'July', 'August', 'September', 'October', 'November', 'December');
Separate year, month and day with strtok or explode and format it yourself.
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
[Back to original message]
|