Skip to content

Instantly share code, notes, and snippets.

@chang180
Created March 23, 2020 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chang180/0a9fe8495fa7dd0de576df1f9c6529e3 to your computer and use it in GitHub Desktop.
Save chang180/0a9fe8495fa7dd0de576df1f9c6529e3 to your computer and use it in GitHub Desktop.
JavaScrpit output date
<script language="javascript">
 var Today=new Date();
 document.write(Today.getFullYear()+ "/" + (Today.getMonth()+1) + "/" + Today.getDate());
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment