Package Exports
- @stacksjs/datetime
- @stacksjs/datetime/index.js
- @stacksjs/datetime/index.js.map
- @stacksjs/datetime/index.ts
Readme
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/datetimeNow, 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:01To 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:
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 💙