[Solved] Parse Date JSON Object to Java

[ad_1]

You can user java.text.SimpleDateFormat for this kind of purposes.

   String a="2016-06-16 11:47:21.000000";
   SimpleDateFormat sdf1=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
   SimpleDateFormat sdf2=new SimpleDateFormat("dd MMM yyyy");
   Date date=sdf1.parse(a);
   System.out.println(sdf2.format(date));

2

[ad_2]

solved Parse Date JSON Object to Java