Hi all, I am new to MFC and was working around with the DateTimePicker control. In my Window i have a DateTimePicker control, its member variable "m_valdate" with COleDateTime type. In my checkdate() i am just checking the dates with m_valdate.GetDay(),GetMonth() and GetYear(). But even if i select a different date in control, the values returned by the GetDay() and all are the same as previous. Please help me out here.