dateFormatStr

converts a Date object to a string in the default date format

string dateFormatStr(object date);

Parameters

dateobjecta Date object

Returns

stringa date as a string in the default date format

Example

var text = webix.i18n.dateFormatStr(new Date());

Details

The default format is defined by the locale in use.

Back to top