This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
DateTimeFormat for just day of week and time.Page Title Module
I've been meaning to look into date formatting. With annotations, it looks like you can only use the standard Joda styles. From the Joda JavaDoc, "The first character is the date style, and the second character is the time style. Specify a character of 'S' for short style, 'M' for medium, 'L' for long, and 'F' for full. A date or time may be ommitted by specifying a style character '-'."
So I tried pulling in the addDateTimeFormatPatterns method from my controller .aj to the controller .java. I simply hard-coded the format like below. And it worked!