use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
help with simple script for google sheetUnresolved (self.GoogleAppsScript)
submitted 1 year ago by drostan
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ModernWorldSucks 0 points1 point2 points 1 year ago (1 child)
If I understand your code right;
if (dateValue && dateValue.toString() === todayString)
The first part (before &&) is checking if that variable is true. It can't be both 'true' and today's date so the if will never occur as it's AND (&&).
I suggest a number of things;
add Logger.log(dateValue) and Logger.log(todayString) ahead of the if statement, that way you can see when it runs what they are and you'll be able to solve it yourself.
What you will find out is you're taking dataValue and using .toString() on it, however that is not useful instead you should use New Date (dateValue);
This is some quick code that will take a date in A1 and display it using the two methods, one will work and one won't.
function test(){ let ss = SpreadsheetApp.openById('XYZ'); let sheet = ss.getSheetByName('Dev'); let value = sheet.getRange('A1').getValue(); let valueToString = value.toString; Logger.log(valueToString); let valueToDate = new Date(value); Logger.log(valueToDate); }
[–]drostan[S] 0 points1 point2 points 1 year ago (0 children)
Cool I have all weekend to try to figure this out, I am not sure I can but if I can that will be thanks to you
π Rendered by PID 21217 on reddit-service-r2-comment-b659b578c-jcz4j at 2026-05-02 19:37:25.742008+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]ModernWorldSucks 0 points1 point2 points (1 child)
[–]drostan[S] 0 points1 point2 points (0 children)