From 6e29b055b3cbc2a46e29075608c7e82a328d5270 Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 15 Feb 2006 07:44:51 +0000 Subject: Adding new TRatingList component. --- framework/Web/UI/WebControls/TCompareValidator.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'framework/Web/UI/WebControls/TCompareValidator.php') diff --git a/framework/Web/UI/WebControls/TCompareValidator.php b/framework/Web/UI/WebControls/TCompareValidator.php index eeebb946..39086b48 100644 --- a/framework/Web/UI/WebControls/TCompareValidator.php +++ b/framework/Web/UI/WebControls/TCompareValidator.php @@ -205,10 +205,12 @@ class TCompareValidator extends TBaseValidator $value2=0; return array($value1, $value2); case 'Date': - throw new TNotSupportedException('Date comparison for TCompareValidator is currently not supported. It will be supported in future.'); $dateFormat = $this->getDateFormat(); if (strlen($dateFormat)) - return array(pradoParseDate($value1, $dateFormat), pradoParseDate($value2, $dateFormat)); + { + $formatter = Prado::createComponent('System.Data.TDateTimeSimpleFormatter', $dateFormat); + return array($formatter->parse($value1), $formatter->parse($value2)); + } else return array(strtotime($value1), strtotime($value2)); } -- cgit v1.2.3