Get the week day from the date in PHP
Description
The following code shows how to get the week day from the date.
Example
<?php// www . j ava2 s . c o m
$date = new Date();
$date->setDMY(30,4,2010);
echo $date->getWeekday();
?>
The following code shows how to get the week day from the date.
<?php// www . j ava2 s . c o m
$date = new Date();
$date->setDMY(30,4,2010);
echo $date->getWeekday();
?>