- if(SelectDay(selectDayByMonth,&month,&day,&year,_T("Pick date")));
+ //if(!SelectDay(selectDayByDay,&month,&day,&year,wxT("Pick date")))
+ if(!SelectDay(selectDayByDay,&month,&day,&year, "Pick date"))
+ return false;
+ wxDateTime dt(m_dt);
+ dt.Set((wxDateTime::wxDateTime_t)day,
+ (wxDateTime::Month)(month-1),
+ (int)year);
+ SetValue(dt);
+ return true;