- const char *ParseFormat(const wxChar *date,
- const wxChar *format = "%c",
- const wxDateTime& dateDef = wxDefaultDateTime);
+ int ParseFormat(const wxString& date,
+ const wxString& format = wxPyDateFormatStr,
+ const wxDateTime& dateDef = wxDefaultDateTime) {
+ const wxChar* rv;
+ const wxChar* _date = date;
+ rv = self->ParseFormat(_date, format, dateDef);
+ if (rv == NULL) return -1;
+ return rv - _date;
+ }