Date validation: how to NOT accept date in the future?
Hi all,
I can't make this to work.
I've set a WA validation DATE rule to:
max date: <?php echo (date('Y-m-d',strtotime('now'))); ?>
But it continue to fail even if I select a date in the past.
I tried <?php echo (date('Y-m-d',strtotime('+0 day'))); ?>: same result
or
I tried <?php echo (date('Y-m-d',strtotime('+1 day'))); ?>: same result
Any suggestion to make this workl is really appreciated.
TIA
tony