You'll need to write a custom function to compare two dates. How to do that is explained in the manual. As far the actual function, there are tons of examples if you search for something like "php date compare" on google.
On Jan 14, 3:56 am, Mike <[email protected]> wrote: > Hi everyone, > > I'm a new user of CakePHP, I tried to do a validation and comparison > between 2 dates, a start date and a end date, for calendar events > purpose. > > I want to know how can I do to implement the validation between these > 2 dates information just to validate that the end date must be greater > than the start date. > > Some code example would be a great help or a good start point. > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
