All Components

DatePipe

Formats a date value to a string based on the requested format. This pipe uses the IntlService.

See IntlService

<ul>
   <li>{{date | kendoDate }}</li>
   <li>{{milliseconds | kendoDate: 'M/dd/yyy' }}</li>
   <li>{{stringDate | kendoDate: 'G' }}</li>
</ul>

Methods

transform

Converts a Date object to a string based on the specified format. If no format is provided, the default short date format is used.

Parameters

value any

The date to format.

format String | DateFormatOptions

The format string or options.

Returns

any The formatted date.

In this article