cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
994
Views
0
Helpful
3
Replies

Validation of Start & End Dates

Validation of Start & End Dates

Has anyone created a request that allows the requestor to select a Start Date/Time & End Date time, for example asking for access for a period of time... and have written validation rules & have actually gotten it to work...we're having some trouble...

For example, rules like

- where the Start Date/Time cannot be less than current date/time

- EndDate/Time cannot be less than Start Date/Time

-etc...

Would really appreciate if you could share your rules... Thanks! 

3 Replies 3

Emir E
Level 1
Level 1

havent done it with rules yet, but did with JS in version 2006

You will stil have to do it with JavaScript in version 2008, since the rules do not support date arithmetic.  (This has been submitted as an enhancement request; feel free to enter another such request.) So your 2006 code is still relevant and the best way to do this.

gary dzurny
Level 1
Level 1

was this enhancement ever done or is it still required to be done within javascript?