VarDateFromUdate

HRESULT VarDateFromUdate( 
  [in]  UDATE  *pudateIn,         
  [in]  unsigned long  *dwFlags,  
  [out]  DATE  *pdateOut          
);
 

Packs a date.

Parameters

pudateIn
Unpacked date.
dwFlags
Returns VAR_VALIDDATE on valid date.
pdateOut
Packed date

Return Value

The return value obtained from the returned HRESULT is one of the following.

Return value Meaning
S_OK Success.
E_OUTOFMEMORY Out of memory.

Comments

The UDATE structure is used with VarDateFromUdate and VarUdateFromDate. It represents an "unpacked" date.

typedef struct {
    SYSTEMTIME st;
    USHORT  wDayOfYear;
} UDATE;