Convert Date
Simple script that converts your date into better looking form of date.
How to implement it?
Installation:
To install convert-date library, use npm packages installer:
npm install convert-data
Next step is to import installed module:
import dateConverter from 'convert-date';
How to use?
If you included 'convert-date' as a module, next step is to use a function that library provides:
DateConverter.convertDate()
Parameters
Above function takes only one argument:
new Date()
Inside of new Date() you can provide timestamp or different paramaters.
if you don't provide an argument, it will generate today's date.
Look:
After conversion to the better form, your date will look like that: 7th of June 2017