Click to See Complete Forum and Search --> : Getting the Date from the Calender


Robert Stuart
04-16-2000, 10:27 PM
What do you call to get the updated date from the Calender? The object is
the "Date Time Picker". The variable is m_odtDate and is initialised as
m_odtDate = COleDateTime::GetCurrentTime
has the data exchange of
DDX_DateTimeCtrl(pDX, IDC_DATE, m_odtDate)
and the notification of
ON_NOTIFY(DTN_DATETIMECHANGE, IDC_DATE, OnDatetimechangeDate)
and the procedure is
void COptionsDlg::OndatetimechangeDate(NMHDR* pNMHDR, LRESULT* pResult)
{
m_odtDate.SetDay(????);
}