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 [EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php