The first thing you need to do is use the mktime() function to create a timestamp for the day in question. In our example we will use Halloween.
$h = mktime(0, 0, 0, 10, 31, 2008); Next you can format this date in different ways using standard date formatting:
$d = date("F dS, Y", $h) ;
$w= date("l", $h) ; Finally you tell the user what day of the week their event falls on simply using Echo():
Echo "$d is on a $w"; So the full code will look like this:
<?php
$h = mktime(0, 0, 0, 10, 31, 2008);
$d = date("F dS, Y", $h) ;
$w= date("l", $h) ;
Echo "$d is on a $w";
?> The code above will return: October 31st, 2008 is on a Friday

