From 264d54c247126353f2fde9513ade0f0979e9df4e Mon Sep 17 00:00:00 2001 From: ARTM Date: Thu, 8 Jul 2021 16:54:45 +0430 Subject: [PATCH] README.md updated for new function --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 58ca106..aa15dc1 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,14 @@ Calculates Gregorian and Julian calendar dates from the Julian Day number (jdn) jalaali.d2g(2457490) // { gy: 2016, gm: 4, gd: 11 } ``` +### jalaaliToDateObject(jy, jm, jd) + +Convert Jalaali calendar date to javascript Date object by giving Jalaali year, month, and day. + +```js +jalaali.jalaaliToDateObject(1400, 4, 30) // new Date(2021, 6, 21) +``` + ## License MIT