日付のフォーマット

月の前のゼロ置換を修正します。



// dt-初期化されたDate()オブジェクト

$( ' declinedate '. value = dt.getDate()+ '。' +( "00" +(dt.getMonth()+ 1))。サブストリング(( "00" +(dt.getMonth()+ 1))。Length-2) + '。' + dt.getYear();



All Articles