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
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdDate Structure
TdDate Members
Overload List