-
Jun 28th, 2007, 02:07 AM
#1
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);
}
-
Jun 28th, 2007, 02:17 AM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules