HtmlHelperExtensions.Time Method

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

Overloads

Time(HtmlHelper, DateTime, String, Boolean) Returns a <time> element with the specified date.
Time(HtmlHelper, NullableTime>, String) Returns a <time> element with the specified date.

Time(HtmlHelper, DateTime, String, Boolean)

Returns a <time> element with the specified date.

public static MvcHtmlString Time(this HtmlHelper helper, DateTime date, string format = null, bool abbrev = false)

Parameters

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

Returns

System.Web.Mvc.MvcHtmlString

Time(HtmlHelper, NullableTime>, String)

Returns a <time> element with the specified date.

public static MvcHtmlString Time(this HtmlHelper helper, DateTime? date, string format = null)

Parameters

helper
System.Web.Mvc.HtmlHelper
date
System.Nullable{System.DateTime}
format
System.String

Returns

System.Web.Mvc.MvcHtmlString