1.0.0 • Published 7 months ago

date-ff v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

Date and Time Library: Simplifying Date and Time Handling in JavaScript

The DateFF is a JavaScript class built to streamline date and time operations. It offers various functions for working with dates and times, making it an essential tool for applications that need precise time-based manipulations.

Key Features

  • Easy Initialization: Initialize the library with the current date and time, ready for use in your applications.
  • Date Formatting: Format dates to your preference with support for custom formatting options.
  • Date Arithmetic: Easily add or subtract days from a given date, making complex date calculations a breeze.

Installation

To incorporate the DateFF into your JavaScript project, simply follow these steps:

NPM

npm install date-ff

Usage Example

Using the DateTimeLibrary is straightforward:

const DateFF = require('date-ff');
const dff = new DateTimeLibrary();

// Get Current Date
console.log(dff.getCurrentDate());

// Get Date Formatter in yyyy-MM-dd HH:mm:ss
console.log(dff.formatDate(currentDate));

// Get Date in 9 days
console.log(dff.addDays(currentDate, 9));
1.0.0

7 months ago