This tutorial shows you how to work with
java.util.Date and j
ava.util.Calendar.
1. Java Date Examples
Few examples to work with Date APIs.
Example 1.1 – Convert Date to String.
SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy");
String date = sdf.format(new Date());
System.out.println(date); //15/10/2013