Convert a week number into a Month

Tags: php excel date

How to convert a week number to a month ?

For example, 162 weeks = 37,26 Month (so 37 Months if we around the number).

Have you an idea ?


You need to have a starting date: eg. 162 weeks from ....

By : CristiC

If you need an average value:

return $numberOfWeeks * 0.229984378;


(However, bear in mind that the number of weeks in a month is not constant. 1 month may contain 4 to 4.4 weeks.)

By : kennytm

that is almost trivial depenging on the accuracy you need

$days = $weeks * 7;
$months = floor($days/30);
By : ITroubs

This video can help you solving your question :)
By: admin