1.0.2 • Published 3 years ago

dateconvertermethods v1.0.2

Weekly downloads
12
License
ISC
Repository
github
Last release
3 years ago

What is this?

Get Date conversion for your app

Installation

npm i dateconvertermethods --save

Then...

import { minusindiandate,slashindiandate,minusshortdateindian,slashshortdateindian,minusfulldateglobal,minusshortdateglobal,slashfulldateglobal,slashshortdateglobal,mediumdate,longdate,shortfulldate,longfulldate } from 'dateconvertermethods';

minusindiandate(new Date())
slashindiandate(new Date())
minusshortdateindian(new Date())
slashshortdateindian(new Date())
minusfulldateglobal(new Date())
minusshortdateglobal(new Date())
slashfulldateglobal(new Date())
slashshortdateglobal(new Date())
mediumdate(new Date())
longdate(new Date())
shortfulldate(new Date())
longfulldate(new Date())

Options

Date Convertor supports these options:

  • minusindiandate - dd-mm-yyyy
  • slashindiandate - dd/mm/yyyy
  • minusshortdateindian - dd-mm-yy
  • slashshortdateindian - dd/mm/yy
  • minusfulldateglobal - mm-dd-yyyy
  • minusshortdateglobal - mm-dd-yy
  • slashfulldateglobal - mm/dd/yyyy
  • slashshortdateglobal - mm/dd/yy
  • mediumdate - ShortMonthName dd , yyyy
  • longdate - LongMonthName dd , yyyy
  • shortfulldate - ShortDayName , ShortMonthName dd , yyyy
  • longfulldate - LongDayName , _LongMonthName dd , yyyy
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago