[Javascript]Javasriptでtoday取得

Javasriptでtoday取得

            const today = new Date();
            
            const yyyy = today.getFullYear();
            let mm = today.getMonth() + 1;
            let dd = today.getDate();
            const yyyymmdd = yyyy + "," + mm + "," + dd;
            console.log('yyyymmdd:'+yyyymmdd);

            var startDate = new Date(yyyymmdd);
            console.log('startDate:'+startDate);

投稿者: kinkun

保有資格 Salesforce Certified Platform App Builder T Salesforce Certified Platform Developer I Salesforce Certified Platform Developer II Salesforce Certified Administrator

コメントを残す

メールアドレスが公開されることはありません。