Re: [nmsinc] Code for A date Greater Than
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/