Posted by Kim Andrι Akerψ on 02/04/06 04:00
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.
I'm guessing that you're also using this on a Windows box?
From the PHP manual for the mktime function:
"Before PHP 5.1.0, negative timestamps were not supported under any
known version of Windows and some other systems as well. Therefore the
range of valid years was limited to 1970 through 2038."
--
Kim AndrΓ© AkerΓΈ
- kimandre@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
[Back to original message]
|