Please enable JavaScript to view this site.

 

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 in the month of Ramadan, in 2021, will be long (30 days) or short (29 days).

nStartShawal = iDate1InYear(1102021// the month after Ramadan
bLongRamadan = (iDayOf(nStartShawal-1) == 30)

See also: iMonthOf, iYearOf, iDateInYear, EncodeMuslimDate.

 


Topic 138600, last updated on 01-Aug-2020