I have date strings like this:
"2015-11-27"
and from them I want to determine the day of week.
This answer shows how to find the weekday of a given date using <ctime>
. What is the canonical way to go about this in C++11? Should I still parse the year, month and day-of-month individually and then use those same functions from <ctime>
or is there a simpler way nowadays?
Aucun commentaire:
Enregistrer un commentaire