Validate range of dates with Regula -


is there way use @range validate range of dates in regula? (ditto @min , @max)

or need use @custom?

@range(min= 

and

@range(max= 

do not seem accept of type date - numbers or strings.

unfortunately @range accepts numbers. think can though:

<input type="hidden"         name="date"         id="date"         data-constraints="            @future(date='2000/1/1', format='ymd')             @past(date='2010/1/1', format='ymd')"  /> 

this ensures date after 2000/1/1 , before 2010/1/1 (i.e., in between). didn't document date parameter because don't think had implemented when wrote documentation. sorry; documentation bit behind because i'm working on rolling version 1.3 of regula out, have lot more goodies. i'll getting started on updating documentation soon!


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -