Liquid XML Data Binder 2019
CreateDateTime(Int32,Byte,Byte,Byte,Byte,Byte,Int16,Int16,Int16,Boolean) Method

LiquidTechnologies.XmlObjects Namespace > LxDateTime Structure > CreateDateTime Method : CreateDateTime(Int32,Byte,Byte,Byte,Byte,Byte,Int16,Int16,Int16,Boolean) Method
The year value
The month value (1-12)
The day value (1-31)
The hour value (0-23)
The minute value (0-59)
The hour (0-59)
The millisecond value (0-999)
The microsecond value (0-999)
The nanosecond value (0-999)
true if the time is a UTC time, false if its a in the local timezone.
Creates a new xsd xs:datetime (Type = LxDateTimeType.DateTime).
Syntax
'Declaration
 
Public Overloads Shared Function CreateDateTime( _
   ByVal year As System.Integer, _
   ByVal month As System.Byte, _
   ByVal day As System.Byte, _
   ByVal hour As System.Byte, _
   ByVal minute As System.Byte, _
   ByVal second As System.Byte, _
   ByVal milli As System.Short, _
   ByVal micro As System.Short, _
   ByVal nano As System.Short, _
   Optional ByVal isUtc As System.Boolean _
) As LxDateTime
public static LxDateTime CreateDateTime( 
   System.int year,
   System.byte month,
   System.byte day,
   System.byte hour,
   System.byte minute,
   System.byte second,
   System.short milli,
   System.short micro,
   System.short nano,
   System.bool isUtc
)

Parameters

year
The year value
month
The month value (1-12)
day
The day value (1-31)
hour
The hour value (0-23)
minute
The minute value (0-59)
second
The hour (0-59)
milli
The millisecond value (0-999)
micro
The microsecond value (0-999)
nano
The nanosecond value (0-999)
isUtc
true if the time is a UTC time, false if its a in the local timezone.

Return Value

A newly constructed LxDateTime
Exceptions
ExceptionDescription
If any of the values are out of range
Requirements

Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

See Also

Reference

LxDateTime Structure
LxDateTime Members
Overload List