parseFormatStr

converts a Date object to a string in the parsing format

string parseFormatStr(object date);
dateobjecta Date object
stringa time as a string in the parsing format

Example

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

Details

The default format is defined by the locale in use and initially it's "%Y-%m-%d "%H:%i:%s" ( the default MySQL date format ).

Back to top