3.0.6 • Published 3 years ago

istoday-date v3.0.6

Weekly downloads
4
License
-
Repository
github
Last release
3 years ago

Available Scripts

In the project directory, you can run:

npm i istoday-date

To Check Date, is today or not.

import { isToday } from 'istoday-date;
use in code

const checkToday = isToday(new Date()); // true,false

To Check date difference by start and end date.

import { checkDateDifference } from 'istoday-date;
use in code
const startDate = new Date();
const endDate = new Date();
const dateDifference = checkDateDifference(startDate, endDate);
// you will get number
0 if no difference
-1 if end date is small
positive number if start date is smaller than end date
import { checkDateMonthDifference } from 'istoday-date;
use in code
const startDate = new Date();
const endDate = new Date();
const dateDifference = checkDateMonthDifference(startDate, endDate);
// you will get number in difference
3.0.6

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago