Re: simple date question

From: Date: Mon, 20 Jan 2003 15:19:31 +0000
Subject: Re: simple date question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-132247@lists.php.net to get a copy of this message
Why not just get the month with another call to date("m") as well? Then call date("W) to get the week, if that's required? ----- Original Message ----- From: "adrian murphy@2020tourism.com" <adrian.murphy@2020tourism.com> To: <php-general@lists.php.net> Sent: Monday, January 20, 2003 8:42 AM Subject: [PHP] simple date question this is pretty simple but my brain's not working I get the numerical value of a week in the year thus e.g $today = date("W"); gives 4 .so this is the 4th week of the year. I want to get the month based on this number. e.g 4 should be january. 7 will be feb etc.. i'm not bothered about being too exact ,where some weeks are in 2 separate months, the earlier month should be displayed.and this is just for 2003. thanks, adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#132247) next »