I'm trying to get the number of the month of the year by the number of a week of the year and the year. So for example week 1 is in january and returns 1, week 6 is in february so I want 2.
I tried to go with date_parse_from_format('W/Y')
but had no success (it's giving me errors).
Is there any way to go with date_parse_from_format()
or is there another way?