Re: Filters and sanitizing a regexp

From: Date: Fri, 26 Sep 2008 16:14:09 +0000
Subject: Re: Filters and sanitizing a regexp
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-280989@lists.php.net to get a copy of this message
On Fri, Sep 26, 2008 at 12:03 PM, Richard Lynch <rlynch@peak6.com> wrote: >> -----Original Message----- >> > hate to say this but why not cater for all eventualities and just use >> > strtotime( $whatever ); >> >> Well it just doesn't have enough geek factor... > > Plus, strtotime() does non-intuitive things with some inputs... > > I'd insist on at least some kind of confirmation page if you use that beast. In the sites I write I have a lot of success with strtotime as long as I have a - to / converter. I also put a note of (Format date as MM/DD/YYYY). Funny that people still seem to want to type -'s. We're all creatures of habit, right? There is always a way to edit stuff though so it isn't the end of the world if it goes weird.

« previous php.general (#280989) next »