I need to create two date objects. If the current date and time is March 9th 2012 11:30 AM then
date object d1 should be 9th March 20
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = new Date(); System.out.println(dateFormat.format(date)); //2014/08/06 15:59:4