I have a date, I want to get the week number of that month, how can i do that?
I tried:
$time = '2016/05/21';
echo date("w", strtotime($time));
I also tried with W
but it is for week of year, but in my case, i need for the month.
Current Result: 6.
Desire Result: 4.