I want to get the current date so I used:
Calendar.getInstance().getTime()
But as it .getTime()
it is returning:
Fri Jul 11 15:07:03 IST 2014
I want only date in any format but without the time.
scala> java.time.LocalDate.now
res4: java.time.LocalDate = 2014-07-11