From bd93d2fecf1ce96ac9a4f6557335489a6347f509 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 25 Feb 2006 14:54:29 +0000 Subject: Added TRangeValidator demo. --- framework/Web/UI/WebControls/TRangeValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TRangeValidator.php') diff --git a/framework/Web/UI/WebControls/TRangeValidator.php b/framework/Web/UI/WebControls/TRangeValidator.php index a861c9d6..842797ba 100644 --- a/framework/Web/UI/WebControls/TRangeValidator.php +++ b/framework/Web/UI/WebControls/TRangeValidator.php @@ -227,7 +227,7 @@ class TRangeValidator extends TBaseValidator if($dateFormat!=='') { $formatter=Prado::createComponent('System.Data.TSimpleDateFormatter', $dateFormat); - $value = pradoParseDate($value, $dateFormat); + $value = $formatter->parse($value, $dateFormat); if($minValue!=='') $valid=$valid && ($value>=$formatter->parse($minValue)); if($maxValue!=='') -- cgit v1.2.3