This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid field value for field "Date"

 
Chandana Garlapati
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the Invalid field value for field "todayDate". When i am entering all the fields and hits submit button the error is getting for date column.

my JSP file



validation.xml



can anyone please help me this out..
 
Paul Clapham
Sheriff
Pie
Posts: 20716
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you format today's date as a string using that rule, you get "24/03/2011". If you look closely you will notice that string is not between the two strings "01/01/1990" and "01/01/2020". Only dates which are January 1 on a year between 1990 and 2020 will be valid; that's a test you can do to see if I have identified your problem or not.
 
Chandana Garlapati
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya it's worked.. can you tell me how to format today's date as a string by accessing database MYSQL

Thanks...
 
Chandana Garlapati
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone please help me...
Even without validation.xml the error is showing the same.
what is the mistake i am doing???

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic