Uses the system default locale settings, rather than customized locale settings.
VAR_CALENDAR_HJRI
If set then the Hijri calendar is used. Otherwise the calendar sent in the control panel is used.
VAR_DATEVALUEONLY
Omits the time portion of a VT_DATE and returns only the date. Applies to conversions to or from dates. Not used for VariantChangeType and VariantChangeTypeEx.
VAR_TIMEVALUEONLY
Omits the date portion of a VT_DATE and returns only the time. Applies to conversions to or from dates. Not used for VariantChangeType and VariantChangeTypeEx.
For input dates with the year between 194707 and 206607 (inclusive), VarDateFromStr will truncate the output value and generate a valid date, with the year in the range from 0 through 9999. In this case, the function returns S_OK.