Removed duplicated code.  Fixed MSVC error where "%F" isn't recognised as a valid formatting code for strftime.