Send feedback on this topic.
Teradata.Client.Provider
IntervalYearToMonth Method (TdPeriodDate)



Teradata.Client.Provider Namespace > TdPeriodDate Structure : IntervalYearToMonth Method
Calculates the number of days in the period and returns the result in a TdIntervalYearToMonth structure.
Syntax
'Declaration
 
Public Function IntervalYearToMonth() As TdIntervalYearToMonth
'Usage
 
Dim instance As TdPeriodDate
Dim value As TdIntervalYearToMonth
 
value = instance.IntervalYearToMonth()
public TdIntervalYearToMonth IntervalYearToMonth()
public:
TdIntervalYearToMonth IntervalYearToMonth(); 

Return Value

The TdIntervalYearToMonth value that contains the difference in years and months between the period ending bound and the period starting bound.
Exceptions
ExceptionDescription
This instance of TdPeriodDate is null.
Remarks

The difference between the ending bound and the starting bound are calculated. Only the years and months are used in the calculation.

The TdIntervalYearToMonth supports only years and months. The days are discarded during the difference calculation.

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

TdPeriodDate Structure
TdPeriodDate Members