common-date-format
v0.0.1
Published
This package formats the date to d-m-Y format.
Downloads
1
Readme
A simple NPM package to convert date formats in JavaScript.
Installation
You can install this package using NPM:
npm install
Usage
const formatDate = require('date-format-converter');
const originalDate = "2023-10-25"; // Date in yyyy-mm-dd format const formattedDate = formatDate(originalDate);
console.log(formattedDate); // Output: "25-10-2023"
Acknowledgments This package was inspired by the need for a simple date format converter in JavaScript.