posted 21 years ago
Hi Jackie,
To get the desired date, you may either use the String Manipulation function or use the code below. Please note that the code below uses the SimpleDateFormat class.
Please note the following about the above code:
1. In case you need to make changes to Date format, chnage the value of the variable : objSimpleDateFormat.
2. Also note that the main method here throws an Exception. This is because the function SimpleDateFormat.parse() throws ParseException, in case the input date is not in correct format.
Hope this helps.
'amit.