0

I need to get particular Day no From Week numbers

$date = date('Y/m/d); // If current date if Monday $dayNo = date('l', strtotime('$date)); it returns as Monday, But i want the dayNo . i.e : 1

18th Sep 2017, 1:35 PM
Chandrasekaran P
Chandrasekaran P - avatar
1 Odpowiedź
0
Try replacing the 'l' with 'w' $dayNo = date('w', strtotime($date)); Sunday = 0, Monday = 1, through to Saturday =6.
18th Sep 2017, 8:28 PM
Duncan
Duncan - avatar