Some more funky datetime manipulation:
As this is my first time experimenting with this I would like to share... So from the database which has a registration date of the member stored, if I wanted to add 1 month to their registration date and use that with a SHOW IF statement:
(The reason why I am using the timestamp stored in the members database rather then doing the calculation on the page then storing that result in the members table is that I may want to know the actual registration date somewhere else on the website...therefore this approach could have more flexability. especially If I store the "1 month" or "8 Hours" in a table in the database that I could then use as dynamic data...lets say you want to change the 8 hours to something else in the future..in your admin area you could have a page that stores that as well so you wouldnt need to edit the page code manually :)
<?php
$currentdatetime = date('l jS M Y H:i:s');
$storeddatetimeandeighthours = strtotime(date($row_rsMembers['MemberValidTo']). '+1 hour');
?>
<?php echo $currentdatetime; ?>
<BR>
<?php echo date('l jS M Y H:i:s',$storeddatetimeandeighthours); ?>
<p> </p>
<?php
if ("".$currentdatetime ."" < "".$storeddatetimeandeighthours ."") { // WebAssist Show If
?>
<p>This text will only show if under the datetime stored in database is less than 8 hours of current datetime</p>
<?php
} // ("".$currentdatetime ."" < "".$storeddatetimeandeighthours ."")
?>