InputDatePredefinedDatesItem #

Item for HxInputDate.PredefinedDates.

API #

Other properties #

Name Type Description
Date DateTime?
DateSelector Func<TimeProvider, DateTime> Used to supply the date at runtime especially to use a TimeProvider. Not used if Date is set.
Label string Custom label.
ResourceType Type Resource type for IStringLocalizer<ResourceType> where the localization will be searched.

Methods #

Method Returns Description
GetDateEffective(TimeProvider timeProvider) DateTime Defaults to returning the InputDatePredefinedDatesItem.Date otherwise calls InputDatePredefinedDatesItem.DateSelector.
Used to resolve the date at runtime, particularly when a TimeProvider is needed.
An unhandled error has occurred. Reload 🗙