Open masoudelahi opened 3 years ago
Example for Bahman (1399/11/11):
const date = dayjs().calendar('jalali').locale('fa'); console.log('days =', date.daysInMonth()); for (let i = 1; i <= date.daysInMonth(); i++) { console.log('day ' + (i < 10 ? '0' : '') + i + 'th = ' + date.format('DD')); }
Output:
Date of month is wrong in some months
Example for Bahman (1399/11/11):
Output: