thepotterer 0 Posted March 8, 2006 Share Posted March 8, 2006 helloi 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
kenrbnsn 2 Posted March 8, 2006 Share Posted March 8, 2006 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:[code]<?php$dt = '7/3/2006';echo date('m-d-Y \i\s \a l',strtotime($dt));?>[/code]Ken Link to post Share on other sites
Recommended Posts
Archived
This topic is now archived and is closed to further replies.