parseTimeFormatDate

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

object parseTimeFormatDate(string date);
datestringa string in the needed format with a time value
objecta date object with the needed time

Example

var hours = webix.i18n.parseTimeFormatDate("10:00").getHours();

Details

The default parseTimeFormat is %H:%i:%s.

Back to top