Re: [SMARTY] html_select_date

From: Date: Wed, 02 Feb 2005 09:22:25 +0000
Subject: Re: [SMARTY] html_select_date
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12221@lists.php.net to get a copy of this message
Hi Pete, On Tuesday 01 February 2005 17:44, pete M wrote: | The current production version I'm using Smarty.2.5 (yes olde site) has | | if (!preg_match('/^\d{4}-\d{1,2}-\d{1,2}$/', $time)) { | | whilst the upgrade I'm going to do (2.6.6) has | | if (!preg_match('/^\d{0,4}-\d{0,2}-\d{0,2}$/', $time)) { | | What i want to confirm is whether the month and days can be single as | well as double digit dates on version 2.6.6 | | ie 1980-1-1 will work as well as 1980-01-01 yes, for these dates the result will be same. The newer regex accepts strings of the form "zero to four decimals followed by a '-' character followed by zero to two decimals followed by a '-' character followed by zero to two decimals". Ciao, Thomas

« previous php.smarty.general (#12221) next »