Share via


IContactProperties::SetDate Method

Sets the date and time value at a specified property to a given FILETIME. All times are stored and returned as coordinated universal time (UTC).

Syntax

HRESULT SetDate(      
    LPCWSTR pszPropertyName,
    DWORD dwFlags,
    FILETIME ftDateTime
);

Parameters

  • pszPropertyName
    [in] Specifies the property to set.
  • dwFlags
    [in] CGD_DEFAULT can be used to create or overwrite value at pszPropertyName.
  • ftDateTime
    [in] FILETIME structure to use for date.

Return Value

Returns one of the following values:

S_OK Value is set at this property.
ERROR_PATH_NOT_FOUND Property name invalid for set.
ERROR_INVALID_DATATYPE Unable to set the value for this property due to schema.