You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if there's a way of getting a full list of all the names of the days of the week or month names. It would be very helpful for creating the tables with the columns named as such depending on which language is used. Thanks!
Update: I found the solution, but it's not very clean:
$date = Date::getTranslator()->getCatalogue()->all()['messages']; // gets a full translation array $days = array_slice($date,23); // 23 is index of 'monday'
The text was updated successfully, but these errors were encountered:
I'm wondering if there's a way of getting a full list of all the names of the days of the week or month names. It would be very helpful for creating the tables with the columns named as such depending on which language is used. Thanks!
Update: I found the solution, but it's not very clean:
$date = Date::getTranslator()->getCatalogue()->all()['messages']; // gets a full translation array
$days = array_slice($date,23); // 23 is index of 'monday'
The text was updated successfully, but these errors were encountered: