Timon Gehr Sun, 19 Jun 2011 15:25:19 -0700
Sry should have been int daysinmonth = month==1?28:30+((month&1)==(month>6));
obv. Cheers, -Timon