I need a php code which return the current week of the day in a month.
Eg: today is 03 / 12/ 2013 , which is first week of this month
if the date becomes 10 / 12 / 2013, then the day is in second week of this month.
I need the php code which retur current week of the month, so the value will always be from 1 to 5.
Does anyone know this code to get the value.
Any help will be appreciated.
Thanks In Advance.
-- Tibin Mathew
This crude little code with give you a rough estimate of what week of the month it is.
It works well when I tested it for today, next week, 6th, 9th week of the year and so on. But it's not accurate because number of weeks per month never evenly average out (eg: Feb).
Hope that helps. And also I'm interested in improved answers.