Remove line 33.
Line 34 should go where line 13 is, i.e. after line 12. Do you understand where you went wrong? join() is a method of an Array object and you made date1 into a string.
Repeat the empty string check for date2 too.
Line 34 should go where line 13 is, i.e. after line 12. Do you understand where you went wrong? join() is a method of an Array object and you made date1 into a string.
Repeat the empty string check for date2 too.
Comment