Hide

YetaWF Documentation

Display
Print

DateTimeWords Component

DateTimeWords (Display)

Displays the model formatted in words as a timespan difference between the current date/time and the model's date/time. Example: a few seconds ago, 2 days ago, last week, 2 months ago, 3 years ago, etc. The complete long date is available as a tooltip when hovering over the rendered timespan.

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.

Sibling Properties

NameTypeDescription
model__EmptyHTMLstringIf the model value is null or equal to DateTime.MinValue or DateTime.MaxValue, the contents of this property are rendered instead.
[Category("Rss"), Caption("Feed Publish Date"), Description("The date this feed was published")]
[UIHint("DateTimeWords"), ReadOnly]
public DateTime? FeedPublishDate { get; set; }