Jump to content

[SOLVED] getting day of week from user defined date?


adamhhh

Recommended Posts

is there a way to do this?

 

e.g. i have three drop down boxes in html asking the user for day (1-31), month, year (2007 or 2008)

 

i then have

 

// get user input
$start_day = $_POST["start_day"];
$start_month = $_POST["start_month"];
$start_year = $_POST["start_year"];
//echo $start_year;

$the_date = $start_day . "/" . $start_month . "/" . $start_year;
echo $the_date;

 

say then i get an output as 13/10/2007 if the user enters that date, is there a way to get what day of the week this is?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.