回答編集履歴
1
今日の日付から時刻情報を消すように変更
    
        answer	
    CHANGED
    
    | @@ -3,7 +3,7 @@ | |
| 3 3 |  | 
| 4 4 | 
             
            ```JavaScript
         | 
| 5 5 | 
             
            function main() {
         | 
| 6 | 
            -
                var today = new Date() | 
| 6 | 
            +
                var today = Utilities.formatDate(new Date(), 'JST', 'yyyy-MM-dd');
         | 
| 7 7 | 
             
                var calendars = CalendarApp.getAllCalendars();
         | 
| 8 8 | 
             
                var text = Utilities.formatDate(new Date(), 'JST', 'yyyy/MM/dd') + "\n";
         | 
| 9 9 |  | 
| @@ -19,7 +19,7 @@ | |
| 19 19 | 
             
                        var event = events[j];
         | 
| 20 20 | 
             
                        var title = event.getTitle();
         | 
| 21 21 |  | 
| 22 | 
            -
                        var startDate = new Date(Utilities.formatDate(event.getStartTime(), 'JST', 'yyyy-MM-dd')) | 
| 22 | 
            +
                        var startDate = new Date(Utilities.formatDate(event.getStartTime(), 'JST', 'yyyy-MM-dd'));
         | 
| 23 23 | 
             
                        if( today != startDate)
         | 
| 24 24 | 
             
                            continue;
         | 
| 25 25 | 
             
                        needNotify = true;
         | 
