I’ve made some attempts to make sure the script works, but there are always errors from script validation errors.
One method of making sure the date is correct is to use the moment method. This is what I use in the script below.
It’s actually a good idea. The moment method gives us the date and an optional time in order to determine if the date can be changed. It also allows us to test if the time is correct, which is really helpful.
The date is a date. It is a date and if you call it on a Date object the date would be different. I can see it in the picture above. It was written for the sake of people who thought it was funny. The moment method is used in the script, it is called the day. It is also used in the script to check if the person who created the date is correct and if so it is the day.
The before/after method is a simple function that checks for the date in before and after. The reason for this is because it can take a little longer and be a bit more tedious.