Tag: std::chrono::year_month_day

Taylor Built Solutions Logo

C++ Date Silliness Update

This post shows how to use the date library maintained by Howard Hinnant to do simple formatting on a date string. It turns out to be surprisingly easy!

Taylor Built Solutions Logo

C++ Date Type Silliness

Recently, I had a project which needed to hold a date with the following properties: Hold the year, month, and day Take a C string (char*) in the format “YYYYMMDD” Do some basic validation and assumption fixing (disallow blank & empty input) Produce a string in a specified format for JSON output My extensive experience…
Read more