i tried doing this:
DateTime dt=new DataTime(DatetimeZone.UTC);
DateTimeFormatter diff=DatTimeFormat.forPattern("yyMMddHHmmss");
DateTime jtime=diff.ParseDateTime(dt.toString());
But am getting illegal argument exception. please help me to resolve this thanks in advance.
Try like this;
or this;
Also from JODA Javadoc; toString() method for DateTime outputs the date in ISO8601.