0👍
You can use this array to determine the day name from day number
days_numbers = [
0 => 'saturday',
1 => 'sunday',
2 => 'monday',
3 => 'thuesday',
4 => 'wednesday',
5 => 'thursday',
6 => 'friday',
];
you can use this for getting day index:
$day_index = fmod($day_number, 7);
- [Chartjs]-Dynamically changing chartjs tick colours
- [Chartjs]-Ng2-charts and chart.js Error 0x80004005 (NS_ERROR_FAILURE) computeLabelSizes only in Firefox
Source:stackexchange.com