Jump to content


finding day from the date

  • Please log in to reply
1 reply to this topic

#1 thepotterer

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 08 March 2006 - 03:29 PM


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!

#2 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

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:
$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