const tarih = new Date(); console.log(tarih); console.log(tarih.getDay()+1); console.log(tarih.getMonth()+1); console.log(tarih.getFullYear());Ekran çıktısı;

5
●148
const tarih = new Date(); console.log(tarih); console.log(tarih.getDay()+1); console.log(tarih.getMonth()+1); console.log(tarih.getFullYear());Ekran çıktısı;

var today = new Date(); var dd = String(today.getDate() +1 ).padStart(2, '0');// günler 0'dan başlıyor o yüzden +1 ile bugüne geliyor var mm = String(today.getMonth() +1 ).padStart(2, '0'); // Aylar 0'dan başlıyor o yüzden +1 ile bugüne geliyor var yyyy = today.getFullYear(); today = mm + '/' + dd + '/' + yyyy; document.write(today);deneyin sorun varsa yazın