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 any standard date or unix epoch, which is used to
create JavaScript Date object. The format can contain following elements: h, h24, m, s, pm, am