I want to read a date in the format YYYY-MM-DD.
But if I enter date say for example 2008-1-1, I want to read it as 2008-01-01.
Can anybody help me? Thanks
Use SimpleDateFormat.
[Edited]
Few sample codes.