[thelist] php date

Luther, Ron Ron.Luther at compaq.com
Wed Dec 26 13:40:22 CST 2001


Hi John,

I'm still a PHP newbie. (I think I could get this working in ASP or
something else pretty quickly - but my PHP is kinda weak yet.)

Anyway, here's a way to pull off the current date in PHP:

http://members.evolt.org/ronl/RLPHP/my_time.php

The extracted code is ...

<?php
$rltime = gmdate("m/d/y",time());
$rlmonth = gmdate("m", time());
$rlday = gmdate("d", time());
?>

Results of time quest <b><?php echo($rltime); ?></b><hr>

The month is <?php echo($rlmonth); ?><br>
The day is <?php echo($rlday); ?>


I'll let you build the comparison branching.

'zat help any?


RonL.


-----Original Message-----
Subject: RE: [thelist] php date

> I have these dates on the page,
> high season = 12/15/01 - 4/15/02
> low season = 4/16/02 - 12/14/02





More information about the thelist mailing list