get-date

Get the current date and time JavaScript module.

Usage no npm install needed!

<script type="module">
  import getDate from 'https://cdn.skypack.dev/get-date';
</script>

README

Get Date npm version Build Status

Install

npm install get-date --save-dev

Use

var dateTime = require('get-date');

console.log(dateTime()); // current date

console.log(dateTime(true)); // current date and time

Release History

  • 1.0.2: Ability to just show year.
  • 1.0.1: Initial release.
  • 1.0.0: Initial release.

Contributing

  1. Fork it
  2. Run npm install
  3. Run Grunt watch grunt watch
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Commit your changes (git commit -am "Add some feature")
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request## License MIT © Ryan Burgess