Rob Spoor wrote:Why even store the bean as a session attribute? It's already tied to the session because it's session scoped. Whenever you access it (either using an autowired field or using the context), you will get the instance belonging to the current session - if none existed yet one will be created.
Carey Brown wrote:I think part of your confusion is that you are not clear about when the issues is with SimpleDateFormatter#format() or SiimpleDateFormatter#parse(). If you parse with "hh" and give it '12' hours it will create the correct number of milliseconds. However, when you use "hh" to reformat it you will get '00' for the hours.