Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get current formatted date dd/mm/yyyy in Javascript

<input type="hidden" id="date"/>
<script>document.getElementById("date").value = new Date().toJSON().slice(0,10)</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #current #formatted #date #Javascript
ADD COMMENT
Topic
Name
3+6 =