DateTimeValue.ToDateTime Method
Returns the internal DateTime representation of a DateTimeValue object.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Function ToDateTime ( _
xmlAttribute As DateTimeValue _
) As DateTime
'Usage
Dim xmlAttribute As DateTimeValue
Dim returnValue As DateTime
returnValue = DateTimeValue.ToDateTime(xmlAttribute)
public static DateTime ToDateTime(
DateTimeValue xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.DateTimeValue
A DateTimeValue object to retrieve an internal DateTime representation.
Return Value
Type: System.DateTime
A DateTime value that represents a DateTimeValue object.