cleanup of fmtDate