Although it is nice that <chrono> has been extended, there are some functions that I haven't found after looking intensely...
For example conversion from std::chrono::sys_days to std::string should be doable by usign the new fmtlib, like so:
1 2 3 4 5 6 7 8
std::string DatePointToString( std::chrono::sys_date pt)
{
// was: auto ret = date::format("%F", pt); //STILL WORKS as long as date.h is
//available
// now: auto ret = std::format("%F", pt; // DOES NOT WORK
return ret;
}
On the other direction, from string to sys_days it works like a charm:
1 2
std::chrono::sys_days tt;
auto ret = std::chrono::parse("%F"s, tt);
Make sure you have the #include <format> header. If it isn't working, then your environment isn't updated with these things yet. You probably just have to wait.