This is what I have:
var data_week_1_raw = selectTheSheet.getRange(1,3).getValue();
Logger.log(data_week_1_raw);
var data_week_1 = Utilities.formatDate(new Date(data_week_1_raw), "CST", "MMM DD YYYY");
Logger.log(data_week_1);
This is what it's outputting:
9:54:43 AM Info Mon Aug 15 00:00:00 GMT-05:00 2022
9:54:43 AM Info Aug 227 2022
Anybody have any idea what's going on here? How to fix it?
I've tried looking around the www but really haven't seen this issue anywhere else. I've tried redundant formatting or changing time zones between formats (ie. GMT-5 or CST)... nothing really changes this result thus far.
Other solutions that the workflow bot thinks are the same but are not
Google Apps Script date format issue (Utilities.formatDate) talks about trying to get a certain format output FROM a script into the google sheets. This does not at all resemble what I am having an issue with.
Utilities.formatDate returning wrong week number describes a problem where the data being pulled from the sheet is not appearing properly... this does not use the same function and again is not the issue I am experiencing.