Jump to content

Archived

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

dquinney

Calculating date

Recommended Posts

Hi, is it posible to calculate the day e.g. (Monday) based on having 17/03/2006 in php? If so does anyone have to correct code to do this as i have been searching in the php date function manual an cannot see how to do this.

Regards Danuel

Share this post


Link to post
Share on other sites
use [code]<?php echo date('l',strtotime('3/17/2006')); ?>[/code] (That's a lowercase "L".)

Ken

Share this post


Link to post
Share on other sites
[!--quoteo(post=355968:date=Mar 17 2006, 02:21 PM:name=dquinney)--][div class=\'quotetop\']QUOTE(dquinney @ Mar 17 2006, 02:21 PM) [snapback]355968[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thanks Ken.
[/quote]

check out all the different powerful options available at your disposal within the date() function in the manual. it's really amazing what all you can do with combining some of the date/time functions.

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.