2.0.3 • Published 4 years ago

date_formater-js v2.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

date_formater-js 2.0.3

An npm package for easy date formate conversion.

This package enable you to convert date to different formats.

Available formats :

Input can be provided in the format YYYY-MM-DD and for current date conversion either null or new Date() can be passed as argumets along with mode.

# Input Formate => formateDate(date,mode) => formateDate("2020-04-15","DD-MM-YYYY")

available modes and output

MODEOUTPUT
DD-MM-YYYY15-04-2020
DD-MM-YY15-04-20
DDMMMYYYY15 APR 2020
DDMonthYYYY15 April 2020
LONGFULLWednesday April,15 2020
LONGWed April,15 2020
DAYWednesday
MONTHApril
DDMmmYYYY15 Apr 2020

USAGE

add to your package.json => "date_formater-js":2.0.2 or run npm install date_formater-js

const date_formater = require('date_formater-js')

const date = date_formater.formateDate(null,"DDMMMYYYY");


sample

formatDate("2020-04-16","DDMMMYYYY") will return date in formate 16 APR 2020

for converting current Date

formatDate(null,"DDMMMYYYY") or formatDate(new Date(),"DDMMMYYYY") # can be used

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.5

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago