Returns time in requested format.
formatTime(dateStr, format)
dateStr string or number, date in common format
format string, format to output
The str argument can be (1) a JavaScript Date, (2) a Unix epoch, (3) any standard date, which will be used to create JavaScript Date object. To ensure correct translation it is best to pass a JavaScript Date.
The format can contain following elements: