Date validatation and format

Hi,

my problem is to validate the date. Means,,,

i am generating the report based on the date and when i am running the java program i am giving date through command line then

I need the date format YYYY-MM-DD

when the user enters the date it has to validate and it has to check whether the given date is correct or not. if the date is not correct format then the system has to prompt the message to user.

Will u please help for this problem.

[480 byte] By [kagitalaa] at [2007-11-27 7:37:01]
# 1
java.text.SimpleDateFormat.Look especially at the setLenient method (which it inherits).Be prepared to catch ParseExceptions.
paulcwa at 2007-7-12 19:17:32 > top of Java-index,Java Essentials,Java Programming...
# 2
i tried like that but i am not getting any thingi need to check the date whether the input is correct format or noti need full code can do favour for me Please
kagitalaa at 2007-7-12 19:17:32 > top of Java-index,Java Essentials,Java Programming...