int = iDayOf(nWesternDate)
This macro function returns the day part of the Muslim/Islamic date corresponding to nWesternDate.
➢This function is calculated using the Muslim calendar specified in the current script's muslim data property. It is therefore possible that the result of this function be different from one script to the next, if these 2 scripts use different Muslim calendars.
Use the following code to check whether Ramadan in 2021 has 30 days or 29 days, using the Muslim calendar selected in the script.
nStartShawal = iDate1InYear(1, 10, 2021) // the month after Ramadan
bLongRamadan = (iDayOf(nStartShawal-1) == 30)
See also: iMonthOf, iYearOf, iDateInYear, EncodeMuslimDate.
Topic 138600, last updated on 01-Aug-2020