In MySQL, use UNIX_TIMESTAMP(`datetime`)

In PHP, use strtotime($datestamp)


mivogt-LU wrote:
Hi there,

I culd need a good hint to solve this:
having to form fields of datetime type.
The second should be checked to be later than the first one.
i.e.arrivel befor leaving, leaving after arrivel.

The idea was to convert it _somehow_ from a datetime string to an
integer to check both.
Sadly I do not know how to do so.

Help would be great.

Thank you

Michael

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to