New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

A DateTime string formatter. This class provides configuration for each DateTime format set to the BaseUnit property.

Definition

Constructors

C#
public DateFormatter()

Properties

Gets or Sets the format to be used when BaseUnit is set to Days

C#
public string DaysFormat { get; set; }

Gets or Sets the format to be used when BaseUnit is set to Hours

C#
public string HoursFormat { get; set; }

Gets or Sets the format to be used when BaseUnit is set to Minutes

C#
public string MinutesFormat { get; set; }

Gets or Sets the format to be used when BaseUnit is set to Months

C#
public string MonthsFormat { get; set; }

Gets or Sets the format to be used when BaseUnit is set to Seconds

C#
public string SecondsFormat { get; set; }

Gets or Sets the format to be used when BaseUnit is set to Weeks

C#
public string WeeksFormat { get; set; }

Gets or Sets the format to be used when BaseUnit is set to Years

C#
public string YearsFormat { get; set; }