date-util-fn
v1.0.12
Published
Utilities helps to quick date requirements.
Downloads
11
Readme
Date Util
A simple and lightweight utility library for working with dates in JavaScript.
Features
- Get date range for given start & end date.
Installation
npm install date-util-fnUsage
const dateUtil = require("date-util-fn");
// generate date range
const formattedDate = dateUtil.generateDateRange(
new Date(01 / 01 / 2025),
new Date(01 / 04 / 2025)
);
console.log(formattedDate);API
generateDateRange(date, date)
Formats a date object into a string based on the provided format.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License.
