Home > WebEOC > Admin Guide > HTML Conventions > Populate Date and Time with JavaScript

Populate Date and Time with JavaScript

Table of contents
No headers

To populate the current date and time with JavaScript, use the following code:

<script type="text/javascript">
var updateTime = '<currentdate/>' + ' ' + '<currenttime/>';
document.forms[0].yourFieldName.value = updateTime;
</script>
You must to post a comment.
Last modified

Tags

Classifications

This page has no classifications.