CHECK OUT IN NPM: NPM_PACKAGE
NPM that makes it easy to get current date
npm i me_current
const current = require("me-current");
console.log(current.year()); //output: 2022
- current.year:
- Outputs the current year in yyyy format
- current.month:
- Outputs the current month in mm format
- current.monthLong:
- Outputs the current month as a string, example: August
- current.monthShort:
- Outputs the current month as an abbreviated string, example: Aug
- current.CalendarFullString:
- Outputs the full calendar date including the week day and month in string format
- current.CalendarString:
- Outputs the full calendar date excluding the week day, with month in string format
- current.weekDay:
- Outputs the day of the week as a string
- current.day:
- Outputs the current day in dd format
Any questions, concerns, or issues, please contact: medictansy@gmail.com