Java tutorial
import java.text.DateFormat; public class Main { public static void main(String args[]) { DateFormat df1 = DateFormat.getDateInstance(); System.out.println(df1.clone().equals(df1)); } }