Re: Re: Using strtotime on 'old' dates.

From: Date: Thu, 23 Jan 2003 19:53:07 +0000
Subject: Re: Re: Using strtotime on 'old' dates.
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-132890@lists.php.net to get a copy of this message
Nathan Fritz wrote:
We're running into the same problem. It was quite convenient to use date("Y-m-d",strtotime($dateField)) to process date data for MySQL. Worked fine for my news management system, since I work with current dates, but my colleague is using it for an application submission system, and needs birthdates and such from before 1970. Are there other functions that can do the same kind of textual date conversions?
Is your colleague running on Windows? I came across this problem today and scripts running fine on Linux and FreeBSD failed on Windows when feeding dates pre-1970 to strtotime(). I then found this post among PHP's bug reports: http://bugs.php.net/bug.php?id=14313 Regards Joakim Andersson

« previous php.general (#132890) next »