Announcement Announcement Module
Collapse
No announcement yet.
How do I i18n format a date? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I i18n format a date?

    Tryed

    Code:
    <fmt:formatDate value="${pojo.creationDate}" pattern="<spring:message code='date.format'"/>
    and also

    Code:
    	@InitBinder
    	public void initBinder(WebDataBinder binder, WebRequest request) {
    		SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
    		dateFormat.setLenient(false);
    		binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
    	}
    Still this makes no difference.

  • #2
    Can you say what kind of errors / problems you are having?

    Comment

    Working...
    X