LiquidTechnologies.XmlObjects Namespace / LxDateTime Structure / LxDateTime Constructor / LxDateTime Constructor(LxDateTimeType,Int32,Byte,Byte,Byte,Byte,Byte,Int16,Int16,Int16,SByte,Byte)
The required XSD type for the LxDateTime
The year value (0 if not required)
The month value (1-12 or 0 if not required))
The day value (1-31 or 0 if not required))
The hour value (0-23 or 0 if not required))
The minute value (0-59 or 0 if not required))
The hour (0-59 or 0 if not required))
The millisecond value (0-999 or 0 if not required))
The microsecond value (0-999 or 0 if not required))
The nanosecond value (0-999 or 0 if not required))
The timezone hour value (-23 to +23)
The timezone minute value (0-59)

In This Topic
    LxDateTime Constructor(LxDateTimeType,Int32,Byte,Byte,Byte,Byte,Byte,Int16,Int16,Int16,SByte,Byte)
    In This Topic
    Creates a new xsd date time type
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal type As LxDateTimeType, _
       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, _
       ByVal zoneHour As System.SByte, _
       ByVal zoneMinute As System.Byte _
    )
    public LxDateTime( 
       LxDateTimeType type,
       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.sbyte zoneHour,
       System.byte zoneMinute
    )

    Parameters

    type
    The required XSD type for the LxDateTime
    year
    The year value (0 if not required)
    month
    The month value (1-12 or 0 if not required))
    day
    The day value (1-31 or 0 if not required))
    hour
    The hour value (0-23 or 0 if not required))
    minute
    The minute value (0-59 or 0 if not required))
    second
    The hour (0-59 or 0 if not required))
    milli
    The millisecond value (0-999 or 0 if not required))
    micro
    The microsecond value (0-999 or 0 if not required))
    nano
    The nanosecond value (0-999 or 0 if not required))
    zoneHour
    The timezone hour value (-23 to +23)
    zoneMinute
    The timezone minute value (0-59)

    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