• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Date Validator scrolls the date

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm using Struts Validator for validating date input. When the user enters the date something like 15/15/2004, for expected format MM/dd/yyyy, the date is interpreted as 03/15/2005.

My validation looks like thisI think this happens because of SimpleDateFormat. Has anyone found workarounds for this? One solution that I've thought of, as a last resort, is providing a client side date picker and making the field read-only. But I'd really like to have a solid server-side solution than relying on client-side scripting

Please share your views on this.

Thanks and regards,
Kinjal Sonpal
 
reply
    Bookmark Topic Watch Topic
  • New Topic