make: also set a date format string to format elapsed time
make: check if date can format dates

Don't use date to format date-stamps in tests unless it is supported.
Fixes #671519