@stacksjs/datetime
TypeScript icon, indicating that this package has built-in type declarations

0.61.18 • Public • Published

Stacks Datetime

Easily work with dates.

☘️ Features

  • Display & visualize dates in a human-friendly way
  • Easily convert dates to different formats & timezones
  • Simply calculate the difference between 2 dates
  • Modify dates with ease

🤖 Usage

bun install -d @stacksjs/datetime

Now, you can easily access it in your project:

import { now, useDateFormat } from '@stacksjs/datetime'

const formatted = useDateFormat(now(), 'YYYY-MM-DD HH:mm:ss')
console.log(formatted) // 2022-11-01 17:06:01

To view the full documentation, please visit https://stacksjs.org/datetime.

🧪 Testing

bun test

📈 Changelog

Please see our releases page for more information on what has changed recently.

🚜 Contributing

Please review the Contributing Guide for details.

🏝 Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

🙏🏼 Credits

Many thanks to the following core technologies & people who have contributed to this package:

📄 License

The MIT License (MIT). Please see LICENSE for more information.

Made with 💙

Package Sidebar

Install

npm i @stacksjs/datetime

Weekly Downloads

783

Version

0.61.18

License

MIT

Unpacked Size

28.8 kB

Total Files

4

Last publish

Collaborators

  • chrisbreuer