How to convert in modern C++ a double into a datetime
问题 How to convert in modern C++ (C++11/14/17) a double into a date time using the date.h library, when the double has been generated while exporting an Excel worksheet as a CSV file? For instance, the datetime appearing in Excel: 21/08/2017 11:54 has been converted by Excel into the CSV file as the double: 42968.4958333333 Thanks. EDIT on 11/07/2019: This questions is about the use of the date.h library. The other questions pointed out as "possible duplicates" does not require the use of this