Category Archives: Java

REST handling empty POST body and filters concepts

Date and SimpleDateFormat date.toString() would do if wanted to have a SimpleDateFormat(yyyy-MM-dd HH mm ss SSS)   Parsing back to Date from String.. Date d = new Date(); long l = d.getTime(); Date theSameDate = new Date(l); Date d = new Date(); String s = d.toString; Date theSameDate = new SimpleDateFormat(“EEE MMM dd HH:mm:ss zzz yyyy”).parse(s);… Read More »