pikaday.js
/*
  Converts a Gregorian date to Jalaali.
*/
Converts a Gregorian date to Jalaali.
Converts a Gregorian date to Jalaali .
function toJalaali(gy, gm, gd) {
    if (Object.prototype.toString.call(gy) === '[object Date]') {
        gd = gy.getDate()
        gm = gy.getMonth() + 1
        gy = gy.getFullYear()
    }
    return d2j(g2d(gy, gm, gd))
}
function toJalaali ( gy , gm , gd ) { if ( Object . prototype . toString . call ( gy ) === '[object Date]' ) { gd = gy . getDate ( ) gm = gy . getMonth ( ) + 1 gy = gy . getFullYear ( ) } return d2j ( g2d ( gy , gm , gd ) ) }
Converts a Gregorian date to Jalaali.
Converts a Gregorian date to Jalaali .