Jump to content

finding day from the date


thepotterer

Recommended Posts

hello

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 comment
https://forums.phpfreaks.com/topic/4442-finding-day-from-the-date/
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:
[code]<?php
$dt = '7/3/2006';
echo date('m-d-Y \i\s \a l',strtotime($dt));
?>[/code]

Ken

Archived

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.