[Solved] how to convert “2012-04-30” date into “04-Apr-2012” format [duplicate]


    Date d = (new SimpleDateFormat("yyyy-MM-dd").parse("2012-04-30"));
    String result = (new SimpleDateFormat("dd-MMM-yyyy", Locale.ENGLISH).format(d));
    System.out.println(result);

0

solved how to convert “2012-04-30” date into “04-Apr-2012” format [duplicate]