• 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 formatting

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Being a newbie I need help with fixing an error on JSP page. It is a billing screen and has three date fields. one field has mm/yyyy format and the other two fields has mm/dd/yyyy format.
if I hit enter key after entering the correct format of mm/yyyy, I get Invalid date format error on the mm/yyyy date text box. If I hit update button then it updates without throwing any error.
if I enter an incorrect date the same error shows
When the JSP loads it calls the JavaScript files.
 
Ranch Hand
Posts: 99
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As you said you are using JS files, I think you have the same name or you calling the same method to validate your textfield mm/yyyy with JS that validates mm/dd/yyyy.

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't sound like this has much to do with JSP, but with JavaScript, so I have moved this to a more appropriate forum.

You'll need to post your code. Otherwise, we can't even begin to guess. Please be sure to UseCodeTags when posting code.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic