Demo entry 6763437

1

   

Submitted by anonymous on Oct 22, 2018 at 16:57
Language: JavaScript. Code size: 169 Bytes.

var date1 = new Date();  
var day = date1.getDate()+1;  
var month = date1.getMonth()+1;  
var year = date1.getFullYear();  
console.log("%d-%d-%d",year,month,day); 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).