code: function(date) {    
              function format(number) {
                  // Format integers to have at least two digits.
                  return (number < 10) ? '0' + number : number;
              }
              return '"' + date.getFullYear() + '-' +
                      format(date.getMonth() + 1) + '-' +
                      format(date.getDate()) + 'T' +
                      format(date.getHours()) + ':' +
                      format(date.getMinutes()) + ':' +
                      format(date.getSeconds()) + '"';
          }
docs: Method: serialize.object
  Transform a date into a JSON string.
  
  Parameters:
  date - {Date} The date to be serialized.
  
  Returns:
  {String} A JSON string representing the date.