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 ...