Implementation of parseDate in Class Util