Jump to content

Archived

This topic is now archived and is closed to further replies.

thepotterer

finding day from the date

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!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×

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.