New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adeoladev/easydate

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adeoladev/easydate

A library that can generate an accurate date format from a simple sentence.

Source
Packagist
Version
2.0.1
Version published
Total downloads
5
Maintainers
1
Created
Source

EasyDate

EasyDate is a library that can generate an accurate date format from a simple sentence.

Installation

JavaScript

npm i @adeoladev/easydate

PHP

composer require adeoladev/easydate

Usage

EDate('10 days ago','dmy','short');

Supported sentences include any amount of days, weeks or months in the future and the past. Such as 3 weeks ago or 10 days from now. You can also use today to get the current date.

Supported formats include any combination of day/month/year such as dmy or mdy. And you can display it in either short or long form.

License

MIT. Copyright (c) 2021 Adeola Boye.

FAQs

Package last updated on 08 Nov 2024

Related posts