Skip to content

Instantly share code, notes, and snippets.

@joelabair
Last active August 29, 2015 14:11
Show Gist options
  • Save joelabair/744e79ffd2edf1abf14c to your computer and use it in GitHub Desktop.
Save joelabair/744e79ffd2edf1abf14c to your computer and use it in GitHub Desktop.
Moment.js - intro
<html>
<head>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.min.js"></script>
</head>
<body>
<script type="text/javascript">
document.write ("Today's date is " + moment().format("MMMM Do, YYYY h:mm a"));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment