AnsweredAssumed Answered

date validation - must be before or equal current date

Question asked by Mike Solomon on May 12, 2015
Latest reply on Jul 24, 2015 by Mike Solomon
I need a date field to be before or equal to the current date

I know it vardefs you can add validation to compare a date to another date

 'validation' => array ('type' => 'isbefore', 'compareto' => 'end_date'),

Is there a way of comparing it to today's date?

I can't find any documentation on Sugar validation

I could validate using JavaScript but if there's a simpler option I'd like to use it

Any help would be much appreciated

I'm using 6.5 CE