Hide

YetaWF Documentation

Display
Print

DateTime Component

DateTime (Display)

Displays the model formatted as a date and time localized using the user's selected time zone and time formatting (see User Settings Module).

Model Type: System.DateTime?

All date/time values in YetaWF are internally stored and processed using UTC.

The model value must be specified as UTC. If the model value is null or equal to DateTime.MinValue or DateTime.MaxValue, nothing is rendered.

[Category("Rss"), Caption("Feed Publish Date"), Description("The date this feed was published")]
[UIHint("DateTime"), ReadOnly]
public DateTime? FeedPublishDate { get; set; }

DateTime (Edit)

Allows entry of a date and time using local time.

Model Type: System.DateTime?

All date/time values in YetaWF are internally stored and processed using UTC.

MinimumDateAttribute and MaximumDateAttribute can be used to define the lowest and highest allowable date/time values.

Sibling Properties

NameTypeDescription
model__SetupDateTimeSetupDefines setup options for the DateTime edit component
[Category("Rss"), Caption("Feed Publish Date"), Description("The date this feed was published")]
[UIHint("DateTime")]
public DateTime? FeedPublishDate { get; set; }