I'm trying to get the jalali month with this simple code but it gives me wrong month number, today is 8th of march / 18th of esfand but getMonth(); returns 11 which is Bahman.
const today = new IDate(new Date());
console.log(today.getMonth()); //logs 11 to the console.
I'm trying to get the jalali month with this simple code but it gives me wrong month number, today is 8th of march / 18th of esfand but
getMonth();
returns 11 which is Bahman.