VarDateFromStr.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

VarDateFromStr (OLEAUT32.94)

SYNOPSIS

HRESULT VarDateFromStr
 (
  OLECHAR* strIn,
  LCID     lcid,
  ULONG    dwFlags,
  DATE*    pdateOut
 )

DESCRIPTION

Convert a VT_BSTR to at VT_DATE.

PARAMS

strIn [In] String to convert.

lcid [In] Locale identifier for the conversion.

dwFlags [In] Flags affecting the conversion (VAR_ flags from "oleauto.h").

pdateOut [Out] Destination for the converted value.

RETURNS

Success: S_OK. pdateOut contains the converted value.

FAILURE: An HRESULT error code indicating the problem.

NOTES

Any date format that can be created using the date formats from lcid (Either from kernel Nls functions, variant conversion or formatting) is a valid input to this function. In addition, a few more esoteric formats are also supported for compatibility with the native version. The date is interpreted according to the date settings in the control panel, unless the date is invalid in that format, in which the most compatible format that produces a valid date will be used.

IMPLEMENTATION

Defined in "oleauto.h".

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

Debug channel "variant".