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 2012 12:00 AM
- date object d2 should contain the current date itself
The date will not be entered, it is system date.
Update:
Date dt = new Date();
System.out.print(dt.toString());
gives current date and time
should be Fri Mar 09 00:00:00 IST 2012