parseTimeFormatStr

converts a Date object to a string in the parsing format with respect to the time value

string parseTimeFormatStr(object date);

Parameters

dateobjecta date object with a time value

Returns

stringa time string in the default format

Example

var time = webix.i18n.parseTimeFormatStr(new Date());

Details

The default parseTimeFormat is %H:%i.

Back to top