I have the following date which is the following type:Date java.util.Calendar.getTime()
Thu Jan 21 14:54:30 AST 2016 I want to remove time from the date part, in a normal way I would do it this way:
DateFormat outputFormatter = new SimpleDateFormat("MM/dd/yyyy"); outputFormatter .format(mydate); which works perfectly fine but I am curious to see if there is a better way doing it using Java Time API?