@alireza-ab/persian-date
TypeScript icon, indicating that this package has built-in type declarations

2.6.2 • Public • Published

Persian Date

A lightweight but professional library for working with Persian dates. This supports Persian (Jalali) and gregorian calendar and from v2.0 supports Nodejs. Also, you can use it in nuxtjs without any problems.

npm version

Features

  • nuxt support
  • nodejs support
  • Persian (jalali) and Gregorian calendar

Documentation

For full documentation, visit https://alireza-ab.ir/persian-date

The peace of PersianDate code

Install

npm i @alireza-ab/persian-date

Usage

let date = new PersianDate([1400, 1, 1], "jalali");

date.diff("1399/9", "date") + " days"; // 120 days

date.isAfter("1399/12/30"); // true

date.addDay(5).toString(); // 1400/01/06

License

PersianDate is available under the MIT license.

Package Sidebar

Install

npm i @alireza-ab/persian-date

Weekly Downloads

57

Version

2.6.2

License

MIT

Unpacked Size

582 kB

Total Files

93

Last publish

Collaborators

  • alireza-ab