/** * Creates a new NSDate instance from is textual representation. * The textual representation must adhere to one of the following patterns. * For XML property lists: <code>yyyy-MM-dd'T'HH:mm:ss'Z'</code> * For ASCII property lists: <code>yyyy-MM-dd HH:mm:ss Z</code> * * @param textRepresentation The textual representation of the date. * @throws ParseException If the date could not be parsed, i.e. it does not match the expected pattern. */ public NSDate(String textRepresentation) throws ParseException { this.date = parseDateString(textRepresentation); }