HtmlHelperExtensions.TimeWhen Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

Overloads

TimeWhen(HtmlHelper, DateTime, Boolean) Returns a <time> element when the specified date occured.
TimeWhen(HtmlHelper, NullableTime>, Boolean) Returns a <time> element when the specified date occured.

TimeWhen(HtmlHelper, DateTime, Boolean)

Returns a <time> element when the specified date occured.

public static MvcHtmlString TimeWhen(this HtmlHelper helper, DateTime date, bool abbrev = false)

Parameters

helper
System.Web.Mvc.HtmlHelper
date
System.DateTime
abbrev
System.Boolean

Returns

System.Web.Mvc.MvcHtmlString

TimeWhen(HtmlHelper, NullableTime>, Boolean)

Returns a <time> element when the specified date occured.

public static MvcHtmlString TimeWhen(this HtmlHelper helper, DateTime? date, bool abbrev = false)

Parameters

helper
System.Web.Mvc.HtmlHelper
date
System.Nullable{System.DateTime}
abbrev
System.Boolean

Returns

System.Web.Mvc.MvcHtmlString