How to change Gregorian date to Persian date in JavaScript?

前端 未结 9 607
青春惊慌失措
青春惊慌失措 2021-02-04 23:46

Can anyone help me to change Gregorian date to Persian in JavaScript? I want to use it in HTML and JavaScript.

9条回答
  •  醉梦人生
    2021-02-05 00:15

    You can use the jalaali-js

    Jalaali JavaScript

    A few javascript functions for converting Jalaali (Jalali, Persian, Khayyami, Khorshidi, Shamsi) and Gregorian calendar systems to each other.

提交回复
热议问题