Javascript implementation of java's String.format(), with additions to support formatting a percentage and postfix-SI, like 120M, 30K. Basic start of porting Formatter.format() to javascript.
Takes a javascript Date object and turns it into a string in the supplied format. If you use dateToLocalFormat, the output will be in your local timezone, if you use dateToUtcFormat the output will be ...