Need to read cq:lastModified date and pass it to Solr document field; How to parse that date
Dear All,
I have a requirement where I need to read cq:lastModified property which is a date in the format - "2015-06-17T15:43:16.352+05:30". Now I have read that date in a string format but when I try to add this date to SolrDocument field by parsing it using a SimpleDateFormat#parse, its giving an exception which says - Unparseable date: "2015-06-17T15:43:16.352+05:30".
Can someone please help me to parse this date so that I can add this to SolrDocument. SolrDocument date format is - "yyyy-MM-dd'T'HH:mm:ss'Z'"
Thanks,
Ravi