Announcement Announcement Module
Collapse
No announcement yet.
Customdate Editor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Customdate Editor

    hi,
    i encountered a strange problem.plz help me .that is when i m click web page link at that time it shows yyyy-mm-dd hh:mm:ss:m,and when i am clicking show records at that time is showing mm/dd/yyyy format.i need mm/dd/yyyy format.i mean when i m going throw showform it shows
    yyyy-mm-dd hh:mm:ss:m format.when i m go throw onsubmit it showing mm/dd/yyyy format.i realy want mm/dd/yyyy format at both times.

    here is my code

    protected static final CustomDateEditor DATE_EDITOR = new CustomDateEditor(
    new SimpleDateFormat("MM/dd/yyyy"), true);


    @Override
    protected void initBinder(HttpServletRequest request,
    ServletRequestDataBinder binder) throws Exception {

    binder.registerCustomEditor(Date.class,DATE_EDITOR );
    super.initBinder(request, binder);
    }

  • #2
    Please don't crosspost!

    Comment

    Working...
    X