format datetime to DATETIME_FORMAT