SyntaxFix
Write A Post
Hire A Developer
Questions
oldDate is not in the format of the SimpleDateFormat you are using to parse it.
oldDate
SimpleDateFormat
Try this format: dd-MMM-yyyy - It matches what you're trying to parse.
dd-MMM-yyyy