1) Every time you log a reading start by checking the month of the previous timestamp and comparing it to the month of your new Date()2) If the month of the new timestamp is not equal to the previous timestamp create a new sheet3) Save the timestamp in the appropriate sheet
4) To test it, edit the last timestamp to make it last month and run your function
--
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/2bf53c02-202e-4f64-b38e-3001c5ae4b6cn%40googlegroups.com.
--