Validating A Nullable Date Field

0 views
Skip to first unread message

Mark Phillips

unread,
Sep 30, 2009, 2:16:35 PM9/30/09
to Castle Project Users
Hi,

How can I use CastleValidators to validate a nullable Date? The
ValidateDate and ValidateDateTime attributes are more like required
Date and DateTime Validators. How can the validators be used to
consider null valid and an improperly entered date as invalid.

Thanks,
Mark

Mauricio Scheffer

unread,
Sep 30, 2009, 8:12:03 PM9/30/09
to Castle Project Users

Mark Phillips

unread,
Oct 1, 2009, 11:42:50 AM10/1/09
to Castle Project Users

Thanks for your time. The issue ended up being another component
interacting with the Validators.


On Sep 30, 8:12 pm, Mauricio Scheffer <mauricioschef...@gmail.com>
wrote:
> Maybe you're using an old version? These validators have considered
> null as valid for over two years...
>
> http://fisheye2.atlassian.com/changelog/castleproject?cs=3875http://fisheye2.atlassian.com/browse/castleproject/trunk/Components/G...http://fisheye2.atlassian.com/browse/castleproject/trunk/Components/G...
>
> On Sep 30, 3:16 pm, Mark Phillips <mgphilli...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > How can I use CastleValidators to validate a nullable Date?  The
> > ValidateDate and ValidateDateTime attributes are more like required
> > Date and DateTime Validators.  How can the validators be used to
> > consider null valid and an improperly entered date as invalid.
>
> > Thanks,
> > Mark- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages