.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH VarFormatDateTime 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBVarFormatDateTime\fR (OLEAUT32.97) .SH SYNOPSIS HRESULT VarFormatDateTime ( LPVARIANT \fIpVarIn\fR, INT \fInFormat\fR, ULONG \fIdwFlags\fR, BSTR* \fIpbstrOut\fR ) .SH DESCRIPTION .PP Format a variant value as a date and/or time. .SH PARAMS \fIpVarIn\fR \fB[In]\fR Variant to format. .PP \fInFormat\fR \fB[In]\fR Format type (see notes). .PP \fIdwFlags\fR \fB[In]\fR Flags for the format (\fBVAR_\fR flags from \fB"oleauto.h"\fR). .PP \fIpbstrOut\fR \fB[Out]\fR Destination for formatted string. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. \fIpbstrOut\fR contains the formatted value. .PP \fBFailure:\fR \fBE_INVALIDARG\fR, if any parameter is invalid. \fBE_OUTOFMEMORY\fR, if enough memory cannot be allocated. \fBDISP_E_TYPEMISMATCH\fR, if the variant cannot be formatted. .SH NOTES .PP This function uses \fBLOCALE_USER_DEFAULT\fR when determining the date format characters to use. Possible values for the \fInFormat\fR parameter are: .br Value Meaning .br ----- ------- .br 0 General date format .br 1 Long date format .br 2 Short date format .br 3 Long time format .br 4 Short time format .SH IMPLEMENTATION .PP Declared in \fB"oleauto.h"\fR. .PP Implemented in \fB"dlls/oleaut32/varformat.c"\fR. .PP Debug channel \fB"variant"\fR.