1 Reply Latest reply on Dec 16, 2012 11:57 PM by Veena_07

    Setting date property in CRX

    Shallu Rohilla Level 1

      Hi,

      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);

      sdf.parse(strCreatedDate);

       

      But this gives parse exception.

      Can someone please suggets.

       

      Regards,

      Shallu