Help with PHP date function.?

Michael Westen

New member
I have the php:

<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
?>

Is there a way to make it so that i can enter a specific date (ex. 12/4/09) rather than just a day.
I tried just substituting the date in where it say s"fri" but no go. Maybe i'm not formatting the date correctly?

Thanks.
Thanks longree, that worked.
 
Back
Top