1.0.10 • Published 2 years ago

fm_date v1.0.10

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

To start working, import and make an instance of the fm_date module

const fmDate = require('fm_date');

const fm = new fmDate();
MethodArgumentsFunctionality
formatDate()date: Date , format: StringReturns date as per format
months()noneReturns months in array
getSecondsSineEpoch()date: DateReturns seconds since epoch
getMillisecondsSineEpoch()date: DateReturns milliseconds since epoch
getSecondsSinceEpoch()date: DateReturns seconds since epoch
getMillisecondsSinceEpoch()date: DateReturns milliseconds since epoch
getMonth()date: DateReturns month
getDay()date: DateReturns Day of week
getYear()date: DateReturns Year