refactored ISO8601 date string method