1.0.0 • Published 6 years ago

find-date-range v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

find-date-range

NPM module that help you find the range of day, week, month

Usage

const dateRange = require('find-date-range');
const day = dateRange.day.findDay(Date.now());
console.log(day.start); //Unix Time of day begin at 00:00:00.000Z
console.log(day.end); // Unix time of day end at 23:59:99.999Z

Method

day.findDay(unix_time)
week.findWeek(unix_time)
month.findMonth(unix_time)