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!
finding day from the date
1 reply to this topic
Posted 08 March 2006 - 03:45 PM
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:
<?php $dt = '7/3/2006'; echo date('m-d-Y \i\s \a l',strtotime($dt)); ?>
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users