I need to format the date into a specific string.
I used SimpleDateFormat class to format the date using the pattern \"yyyy-MM-dd\'T\'HH:m
SimpleDateFormat
yyyy-MM-dd\'T\'HH:m
What you can do is just add the ":" manually using substring(). I have faced this earlier and this solution works.