Added formatSqlTimestamp