Code for A date Greater Than

Re: [nmsinc] Code for A date Greater Than

By Jason - October 11, 2011

Hi,

Try this:

<?php

$currentDateTime = strtotime(date("Y-m-d h:i:s"));
$minus24Hours = strtotime("-1 day", $currentDateTime);
$updatedDateTime = strtotime($claims_submissionRecord['updatedDate']);

?>

<?php if ($updatedDateTime < $minus24Hours): ?>
// record was last updated more than 24 hours ago


<?php else: ?>
// record has been update within the last 24 hours


<?php endif />


Hope this helps get you started
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Code for A date Greater Than

By nmsinc - October 11, 2011

Jason,

As always - your suggestion worked with perfection!

Thanks
nmsinc