Hi Justin, The -1 to get all is a good idea. Refactoring the simple version to include this functionality may be a good approach.
Date formats end up being a minefield. I suppose the rigorus way to do it is to use the Java packages to retrieve date formats based on a code (MMM YYYY etc.). This should automatically adjust for the user's language if Roller is deployed to non-English speaking areas. The only downside to this is that the writer of the template will have to know the codes, some of them will not have access to, nor be comfortable, using javadocs to figure them out. Another idea is to default to numbers: 2006-03 2006-02 Etc. These are language-neutral and they require no specification. If you want labels then you must include a named 12 element array in your template ( suggest "MonthLabels" ?). The code uses the labels in the array if the array is there, otherwise numbers rule. We could also have a format variable that, if present, alters the display . YY is two-digit year, YYY* is 4 digit year, M+ (M MM MMMM etc) is month and any other characters get passed as-is. This would allow the real alternative universe crowd (Celts, Klingons, Esperante) to use whatever labels for the month turns them on! Default for no format is YYYY-Month . Thanks for your work. Bill Ps - If you have time and would tell me how you bring Roller into Eclipse I would really appreciate it. I have some work I want to do on an editor upload servlet.
