neethuop_simple_date_utils
v1.0.0
Published
A lightweight utility library for common date operations
Maintainers
Readme
simple_date_utils
a lightweight utility library for common date operations in JavaScript.
Installation
npm install simple-date-utils
### Features:
1. formatDate(date, format) – Format a date into YYYY-MM-DD, DD/MM/YYYY, etc.
2. getToday() – Returns today’s date in ISO format.
3. addDays(date, days) – Adds days to a given date.
4. differenceInDays(date1, date2) – Returns the number of days between two dates.
5. isWeekend(date) – Checks if a date falls on a weekend.