Dynamic DateTimeRangeValidator using Enterprise Library 4.1?
Posted
by Toran Billups
on Stack Overflow
See other posts from Stack Overflow
or by Toran Billups
Published on 2009-01-09T17:53:51Z
Indexed on
2010/04/30
18:27 UTC
Read the original article
Hit count: 463
enterprise-library
|validation
I'm trying to add a range of - 365 days and + 365 days but it appears that using this attribute in EL 4.1 only accepts a special ISO formatted string ... thus I can't simply add a normal string to this validation routine.
<DateTimeRangeValidator(DateTime.Now.AddDays(2), DateTime.Now.AddDays(4))> _
I wanted to do something similar to the above - fyi
Does anyone know how you can force this attribute to accept this ISO formatted string w/out hand coding this value?
© Stack Overflow or respective owner