Send feedback on this topic.
Teradata.Client.Provider
TdDate Constructor(Int32,Int32,Int32)



Teradata.Client.Provider Namespace > TdDate Structure > TdDate Constructor : TdDate Constructor(Int32,Int32,Int32)
The year of the date that is to be represented as a TdDate.
The month of the date that is to be represented as a TdDate.
The day of the date that is to be represented as a TdDate.
A TdDate is created from the date components specified as integers.
Syntax
'Declaration
 
Public Function New( _
   ByVal year As Integer, _
   ByVal month As Integer, _
   ByVal day As Integer _
)
'Usage
 
Dim year As Integer
Dim month As Integer
Dim day As Integer
 
Dim instance As New TdDate(year, month, day)
public TdDate( 
   int year,
   int month,
   int day
)
public:
TdDate( 
   int year,
   int month,
   int day
)

Parameters

year
The year of the date that is to be represented as a TdDate.
month
The month of the date that is to be represented as a TdDate.
day
The day of the date that is to be represented as a TdDate.
Exceptions
ExceptionDescription
A TdDate cannot be created from the components specified.
Remarks

The valid values for each component are:

Date Component Valid Range
year 0001 to 9999
month 1 to 12
day 1 to 31
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdDate Structure
TdDate Members
Overload List