adding Aggregate UDF and making DateTime format ISO 8601 compatible