Closed (fixed)
Project:
Field Validation
Version:
7.x-2.0-beta2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 May 2012 at 12:55 UTC
Updated:
18 Jun 2012 at 10:21 UTC
Hi,
I am creating a "week commencing" field and need to validate that the date (date module) is a Monday..
Looking at "Date range2" rules but can't see how to specify it..
Any help appreciated.. Thanks..
Comments
Comment #1
g089h515r806 commentedCycle : week
min: 1 01:01:01
max: 1 23:59:59
Comment #2
wipeout_dude commentedThanks for replying..
Your suggestion didn't seem to work..
I tried..
Cycle : week
min: 1 00:00:00
max: 1 23:59:59
..as well which also didn't work..
The field is only a date, no hours, minutes or seconds.. Would that make a difference??
Is "Date range" and "Date range2" pretty much the same thing just with a different UI??
Comment #3
g089h515r806 commented"Date range" and "Date range2" should have the same thing .
I have not test all the use case when i build "Date range2" ,
You could try with "Date range" .
the correct should be :
Cycle : week
min: 1 00:00:01
max: 1 23:59:59
Comment #4
g089h515r806 commentedTry with the latest code of dev version.
I have fixed it.
The correct code for week validate should be:
Comment #5
wipeout_dude commentedThe dev version appear to solve the date validation.. Also created a rule to validate monday - friday whick worked..
Thanks..
Comment #6
g089h515r806 commented