getVarDate Method (JavaScript)

Switch View :
ScriptFree
JavaScript
getVarDate Method (JavaScript)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a VT_DATE value from a Date object.

Caution note Caution

This method is supported in Internet Explorer only.

dateObj.getVarDate()
Remarks

The required dateObj reference is a Date object.

The getVarDate method is used when code interacts with COM objects, ActiveX objects, or other objects that accept and return date values in VT_DATE format. These include objects in Visual Basic and Visual Basic Scripting Edition (VBScript). The actual format of the returned value depends on regional settings.

Requirements

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, and Internet Explorer 10 standards. Not supported in Metro style apps. See Version Information.

Applies To: Date Object (JavaScript)

See Also

Reference