How to get current formatted date dd/mm/yyyy in Javascript and append it to an input [duplicate] How to get current formatted date dd/mm/yyyy in Javascript and append it to an input [duplicate] javascript javascript