DVARIANT.PutDateStringmethod
Initializes DVARIANT VT_DATE from a string.
Syntax
FUNCTION PutDateString (BYVAL pwszDate AS WSTRING PTR, BYVAL lcid AS LCID = 0, BYVAL dwFlags AS ULONG = 0) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
pwszDate | The date value to convert, e.g. "2018-08-20 19:42". | |
lcid | The locale identifier. | |
dwFlags | One or more of the following flags. LOCALE_NOUSEROVERRIDE : Uses the system default locale settings, rather than custom locale settings. VAR_CALENDAR_HIJRI : If set then the Hijri calendar is used. Otherwise the calendar set in the control panel is used. VAR_TIMEVALUEONLY : Omits the date portion of a VT_DATE and returns only the time. Applies to conversions to or from dates. VAR_DATEVALUEONLY : Omits the time portion of a VT_DATE and returns only the date. Applies to conversions to or from dates. |
Return value
If this function succeeds, it returns S_OK (0). Otherwise, it returns an HRESULT error code.
Description
Initializes DVARIANT VT_DATE from a string.
Remarks
Creates a VT_DATE variant.
Reference
- Include file
DVARIANT.INC - Defined in AfxNova/DVARIANT.inc:1330
- Documented in COM/DVARIANT Class.md
- Topic: DVARIANT Class