This topic is locked

How to check against current time

4/29/2008 9:21:46 AM
PHPRunner General questions
L
Lisa2006 author

Hi forum,
How do i check my field called current_time against the actual time.

This code will be placed in the Add Page: Before record added.
Thanks in advance
Lisa

J
Jane 4/29/2008

Hi,
use standart strtotime() PHP function to parse your time field to Unix timestamp and then compare two timestamps.

http://php.net/manual/en/function.strtotime.php