New to Kendo UI for AngularStart a free 30-day trial

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

Definition

Package:@progress/kendo-angular-intl

Syntax:

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

Methods

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

Parameters:valueany

The date to format.

formatstring | DateFormatOptions

The format string or options (optional).

localeId?string

The ID of the locale which will be used instead of the default one (optional).

Returns:

any

The formatted date as a string.

In this article
DefinitionMethodstransform
Not finding the help you need?
Contact Support