DateAndOrTimeHasYear Property

Gets a value indicating whether the encapsulated data contains information about the year.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public abstract bool HasYear { get; }

Property Value

Boolean
true if the instance contains information about the year, otherwise false.

Remarks

The vCard 4.0 specification allows to omit the year in a date but the .NET data types don't. This property gets the information whether the year component of an encapsulated DateOnly or DateTimeOffset value should be treated as irrelevant or not.

See Also