Getting a misleading error using Google Script

This code does basically what I want, copy and rename a sheet to the current date.  I found it and am trying to customize it to give me todays date.  I'm getting an error that I think is misleading, but I do not know what the real problem is

Im getting the error
Missing ; before statement
The line being pointed to  is  Date today = new Date();
You can see the full script in the attachment, I don't see what the problem is, but then this is the 1st time using Google script/Java

Any help will be appreciated
duplicateTemplateSheet.txt
c7c4c7Asked:
Who is Participating?
 
c7c4c7Connect With a Mentor Author Commented:
See the following how I solved the problem

Thanks for all the help
duplicateTemplateSheet.txt
0
 
c7c4c7Author Commented:
It did what I needed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.