Hi All,
i want to parse created date to time format but it is throwing error.
my created date of document is:-
Mon May 03 11:58:44 BST 2021
i am trying to parse this into date format but it is throwing error:-
String createdDate = props.get(ContentModel.PROP_CREATED).toString();
Date date = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS").parse(createdDate);i want output as:- 2021-05-03 11:58:44 for the created date.
Can someone guide how i can acheive it.
Thanks,
Piyush