📜 ⬆️ ⬇️

Format date

Proper zero substitution before months:

// dt - initialized Date object ()
$ ( 'declinedate' ) .value = dt.getDate () + '.' + ( “00” + (dt.getMonth () + 1)). Substring (( “00” + (dt.getMonth () + 1)). Length-2) '.' + dt.getYear ();

')

Source: https://habr.com/ru/post/29516/


All Articles