Corrected datetime parse/format