Retrieves the masked edit control's contents as a date/time value.
C
BOOL SftMask_Contents_GetDateTime(HWND hwndCtl, DATE* lpDate);
C++
BOOL CSftMask::GetDateTime(DATE* lpDate) const;
hwndCtl
The window handle of the masked edit control.
lpDate
The address of a DATE value receiving the date/time.
The return value is TRUE if the date/time was retrieved successfully. FALSE is returned if the entered date is not valid.
The edit mask must contain date and/or time field tokens (see Edit Masks). The date is validated against the calFirstDate and calLastDate fields.
See Also SetDateTime | GetValue | Edit Masks | Popup Calendar