Send feedback on this topic.
Teradata.Client.Provider
Precedes(TdDate) Method



Teradata.Client.Provider Namespace > TdPeriodDate Structure > Precedes Method : Precedes(TdDate) Method
The date value.
Indicates that this instance precedes the date value.
Syntax
'Declaration
 
Public Overloads Function Precedes( _
   ByVal value As TdDate _
) As Boolean
'Usage
 
Dim instance As TdPeriodDate
Dim value As TdDate
Dim value As Boolean
 
value = instance.Precedes(value)
public bool Precedes( 
   TdDate value
)
public:
bool Precedes( 
   TdDate value
) 

Parameters

value
The date value.

Return Value

A true is returned when this instance precedes the date value, otherwise a false is returned.
Remarks

A false will be returned if either this instance or value is TdDate.Null.

This instance will precede the date value if the ending bound of this instance is less than or equal to the date value.

The following are examples.

Result Precedes
true

Period: (2006-04-01, 2006-04-15)

Date: 2006-04-15

true

Period: (2006-05-31, 2006-06-05)

Date: 2006-10-01

false

Period: (2008-12-15, 2008-12-31)

Date: 2008-12-20

false

Period: (2008-02-01, 2008-03-01)

Date: 2008-02-01

false

Period: (2008-09-05, 2008-09-15)

Date: 2008-01-17

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members
Overload List