Jump to content

finding day from the date


Recommended Posts


i have got booking page set up which allows users to select 'day' 'month' and 'year' that they require their booking. is it possible to show th user what actual day this will fall on?

ie; 7-3-2006 is a tuesday.

anyhelp would be much appreciated, i just cant see how to do it! thanks!
Link to post
Share on other sites
Look at the [a href=\"http://www.php.net/date\" target=\"_blank\"]date[/a]() and [a href=\"http://www.php.net/strtotime\" target=\"_blank\"]strtotime[/a]() functions:
$dt = '7/3/2006';
echo date('m-d-Y \i\s \a l',strtotime($dt));

Link to post
Share on other sites


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.