VarUdateFromDate

HRESULT VarUdateFromDate( 
  [in]  DATE  *dateIn,            
  [in]  unsigned long  *dwFlags,  
  [out]  UDATE  *pudateOut        
);
 

Unpacks a date.

Parameters

dateIns
Unpacked date.
dwFlags
Set for alternative calendars such as Hijri, Polish and Russian.
pudateOut
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;