Location: PHPKode > projects > Mozart > Mozart-0.0.4/getcurrdate.php
<html>
<?
// called from: any program needing today's date
// description: get current date

$current_date = getdate();

// $Month-num = $current_date["mon"];
// $Day-num   = $current_date["mday"];
// $Year-num  = $current_date["year"];

printf("Month: %s<br>", $current_date["mon"]);
printf("Day: %s<br>", $current_date["mday"]);
printf("Year: %s<br>", $current_date["year"]);
?>
Return current item: Mozart