Home Forums Article Discussions Article Discussions by Author Discuss content posted by Harsha Majety Function to get number of days in month RE: Function to get number of days in month
damir.sovic
SSC Veteran
Points: 215
More actions
May 2, 2011 at 3:04 pm
#1318752
Does anyone noticed this logic:
Month < 8 AND month <> 2 => days_in_month = 30 + (month & 1)
Month >= 8 => days_in month = 30 + ((month+1) & 1)
Of course, there is standard for the February