Please enable JavaScript to view this site.

 

int = iMonthOf(nWesternDate)

 

This macro function returns the month 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 if the date of the incoming macro token is in the month of Ramadan and, if so, change the text color to green.

sResult = '[' + s_LangDayToken + ']'
bInRamadan = (iMonthOf(n_TokenDate) == 9)
if bInRamadan
   sResult = FormatText(sResult, 'COLOR(PANTONE 569 U)', -1))
endif 

See also: iDayOf, iYearOf, iDateInYear, EncodeMuslimDate.

 


Topic 138700, last updated on 01-Aug-2020