I need to set a date property in CRX(eg: expiry date) so I need to convert date in format - mm/dd/yyyy.
How can I convert and save this in appropriate format.
I tried using -
SimpleDateFormat sdf = new SimpleDateFormat(JCR_DATE_FORMAT);
But this gives parse exception.
Can someone please suggets.
The way you are doing is correct. Can u just convert strCreatedDate to a String and den try the same code . It should work I guess since i have done the same requirement before. And it worked for me