git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16344
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void ClearList();
// Implementation
-protected:
+public:
// Type conversion
bool Convert(long* value) const;
bool Convert(bool* value) const;
{
wxString type(GetType());
if (type == wxT("datetime"))
+ {
*value = ((wxVariantDataDateTime*)GetData())->GetValue();
- else
- return FALSE;
-
- return TRUE;
+ return TRUE;
+ }
+ // Fallback to string conversion
+ wxString val;
+ return Convert(&val) && (value->ParseDate(val));
}