var today = new Date(); today = today.getFullYear() + "-" + (today.getMonth() + 1) + "-" + today.getDate();
これ以外ないかな?
"2014-03-09"となる。
- 区切りにしたので注意
var today = new Date(); today = today.getFullYear() + "-" + (today.getMonth() + 1) + "-" + today.getDate();
これ以外ないかな?
"2014-03-09"となる。