pad = function(n) {
   return n < 10 ? '0' + n : n;
 }
Utility for formatting a Date object as a string in ISO 8601 format using UTC.
@param {Date} d The date to format.
@return {string} The formated date string in ISO 8601 format.