In C++11 and later versions, date and time is supported in the standard library through the
chrono header file. To print out the date and time, you may still have to fall back on the
std::tm structures and
std::localtime functions from the
ctime header file and
iomanip header file.
The code sample below shows these in action:
Tried with: Visual C++ 2013