If a script sets a date value in a cell with a custom date format, the cell reverts to the default date ...
developers.google.com