thepotterer 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! Quote Link to comment Share on other sites More sharing options...
kenrbnsn 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.