Letakkan 0 di depan nomor bulan JavaScript
var d = new Date();
var date = d.toISOString().slice(0,10); // "2014-05-12"
Jumping Boy
var d = new Date();
var date = d.toISOString().slice(0,10); // "2014-05-12"