Skip to content
Advertisement

PHP get number of week for month

So I have a script that returns the number of weeks in a particular month and year. How can I take a specific day from that month and determine if it is part of week 1,2,3,4 or 5 of that month?

Advertisement

Answer

The most frustrating thing I have ever tried to get working – but here it is!

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement