<% template APDateFormat(Date date) month = date.month + 1; // Java months start with Jan. = 0 if (month >= 3 and month <= 7) { // format to apply for March, April, May, June and July dateFormat("EEEE, MMMM d, yyyy") } else { // format to apply for Jan, Feb, Aug, Sept, Oct, Nov and Dec. dateFormat("EEEE, MMM. d, yyyy") } %>