This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a jsp page where I accept the date. Then I want to test if the date is valid or not. Here I have an Invlid date, but the output show the date as 04-05-2004. Is this s bug or I am not doing something right?.
What happens when a date is entered like 3/36/04 it takes the amount of days past 31 for the 3rd month in your case 5 more than 31 and rolls it over to the next month and adds 5 days. This is good for adding days when you don't know the amount of days in the month.