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
1 Antwort
0
Try replacing the 'l' with 'w'
$dayNo = date('w', strtotime($date));
Sunday = 0, Monday = 1, through to Saturday =6.