DateAndOrTimeHasYear Property
Gets a value indicating whether the encapsulated data contains information about the year.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public abstract bool HasYear { get; }
Public MustOverride ReadOnly Property HasYear As Boolean
Get
public:
virtual property bool HasYear {
bool get () abstract;
}
abstract HasYear : bool with get
Property Value
Booleantrue if the instance contains information about the year, otherwise
false.
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.