The issue is that what is displayed for a Date value is a little different than what the object actually contains. So comparing it to a string will never work this way.
If you just want to check against the string “1/1/1970”, then instead of using getValues(), try using getDisplayValues().
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAHL69DXSj1Fij45sj%2BUu-f2Wd3LF131PYQm_CSx%3DufuH%2BJVR%3Dg%40mail.gmail.com.