SWbemDateTime.Value property
The Value property of the SWbemDateTime object gets or sets the raw CIM date in the DMTF (Distributed Management Task Force) format. The DMTF format is a string representation of the DATETIME value. This property is the default property for SWbemDateTime objects. The Value property has a default value of 00000101000000.000000+000.
For an explanation of this syntax, see Document Conventions for the Scripting API.
This property is read/write.
Syntax
SWbemDateTime.Value As String
Property value
Error codes
After you get or set the Value property, the Err object may contain the error code below.
-
wbemErrInvalidSyntax - 2147749921 (0x80041021)
-
The format of strValue is not valid.
Examples
For examples of using the SWbemDateTime object to convert CIM DATETIME values to and from either the FILETIME format or the VT_DATE format, see WMI Tasks: Dates and Times. For a description of the CIM DATETIME format, see Date and Time Format.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
Type library |
|
DLL |
|
CLSID |
CLSID_SWbemDateTime |
IID |
IID_ISWbemDateTime |