code: public Date parseDateTime( String str ) throws java.text.ParseException
    {
      if( str == null )
      {
        return null;
      }
  
      return DateFormat.getDateInstance().parse(str);
    }
docs: Produce a date from a string using standard DateFormat parsing.