Obtenha o script do Google Apps Google

Utilities.formatDate(new Date(), "GMT+1", "dd/MM/yyyy")
SoftwareUp