Javascript Date toUtc()

Description

Javascript Date toUtc()


Date.prototype.toUtc = function () {
  const offset = new Date().getTimezoneOffset()*60000;
  return new Date(Date.now() + offset)
};



PreviousNext

Related