Reference

VarUI2FromDate(3w)

NAME

VarUI2FromDate (OLEAUT32.262)

SYNOPSIS

HRESULT VarUI2FromDate
(
DATE dateIn,
USHORT* pusOut
)

DESCRIPTION

Convert a VT_DATE to a VT_UI2.

PARAMS

dateIn [In] Source.

pusOut [Out] Destination.

RETURNS

Success: S_OK.

Failure: DISP_E_OVERFLOW, if the value will not fit in the destination

IMPLEMENTATION

Declared in "oleauto.h".

Implemented in "dlls/oleaut32/vartype.c".

Debug channel "variant".

History