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
I guess you just divide the day by 7?
OR
Did you want to consider this based on a certain start day of the week? In that case you'd have a range 1-6 (e.g. 1st is a Saturday and start of week is Sunday would mean 31st would be in week 6...).