Location: PHPKode > scripts > My Date > my-date/example.php
<?php
// script example.php
// uses class myDate

include("myDate.php");

$today = new myDate();
$x = new myDate();
$y = new myDate();
$z = new myDate();

$x->set_seperator(" @ "," , ");
$y->set_seperator(" # "," ");
$z->set_seperator(" | ");

$x->format_date("Y","l","F");
$y->format_date("l","Y","F");
$z->format_date("F","Y","l");

echo $today->get_date()."<br>"; //returns 2004-04-13
echo $x->get_date()."<br>"; // returns hide@address.com,April
echo $y->get_date()."<br>"; // returns Tuesday#2004 April
echo $z->get_date()."<br>"; // returns April|2004|Tuesday



?>
Return current item: My Date