dquinney Posted March 17, 2006 Share Posted March 17, 2006 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 Link to comment https://forums.phpfreaks.com/topic/5155-calculating-date/ Share on other sites More sharing options...
kenrbnsn Posted March 17, 2006 Share Posted March 17, 2006 use [code]<?php echo date('l',strtotime('3/17/2006')); ?>[/code] (That's a lowercase "L".)Ken Link to comment https://forums.phpfreaks.com/topic/5155-calculating-date/#findComment-18318 Share on other sites More sharing options...
dquinney Posted March 17, 2006 Author Share Posted March 17, 2006 Thanks Ken. Link to comment https://forums.phpfreaks.com/topic/5155-calculating-date/#findComment-18383 Share on other sites More sharing options...
obsidian Posted March 17, 2006 Share Posted March 17, 2006 [!--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. Link to comment https://forums.phpfreaks.com/topic/5155-calculating-date/#findComment-18395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.