I have a cell that displays the month name in date format using MMMM
. How can I script to convert the month name to uppercase while keeping the cell formatted as a date? I've attempted to use toUpperCase()
without success.
The code snippet I'm experimenting with is:
sheet.getRange(cells[0],1).toUpperCase();
I also tried using getValues()
combined with toUpperCase()
, but it didn't work either.
Is there another Javascript or GAS method that can achieve this, or am I approaching it incorrectly?
EDIT: I intend to store the uppercase month name in the cell without converting it to text format, maintaining its date format.