🚀 Introduction
It is a tiny date formating package in js.
📦 Installation
npm i date-wizard-js
🖊️ Author
Ahin Subhra Das
📎 Declaration
Require date-wizard in the top of your file :
const dateWizard = require('date-wizard-js');
📃 Usage
When you are use this package into your project remember two parameters need to always send through declared variables, one is your date and other one is pattern what you want as result. Please check patterns in pattern-declaration section you get output only using perticular those patterns.
const resultDate = dateWizard(date,pattern);
💡 pattern-declaration
"dd mnth year" : For date mnth(in short name) year
"dd-mm-year" : For dd-mm-year basic format
"year-mm-dd" : For year-mm-dd basic format
"dd month year" : For date month(in full name) year
"dayL dd month year" : For day(in full name) date month year
"dayS dd month year" : For day(in short name) date month year
"hr min am pm" : For hour minute with am & pm
"hr min sec am pm" : For hour minute seconds with am & pm
"hr min" : For hour minute
"hr min sec" : For hour minute seconds