package HTML::Widget::Constraint::ISODate;
use warnings;
use strict;
use base 'HTML::Widget::Constraint';
use DateTime::Format::Strptime;
my $format=DateTime::Format::Strptime->new(pattern=>'%F');
sub validate {
my ($self,$value)=@_;
my $val=$format->parse_datetime($value);
return defined($val);
}
1;