Hi,
I want to get only the date part of java.util.Date() resetting time to 00.
Let me make it more clear. When I am initializing the date object as
java.util.Date date = new java.util.Date();
I am getting the date object with value as "Thu May 27 12:13:49 IST 2010"
I just want to set the time part of this object to "00:00:00"
I dont want to get the output as
String using DateFormat class.
The output should be a java.util.Date object only.
In java.util.Date, setHours, setMinutes and setSeconds functions are deprecated.
What alternative I can use instead of those function?
Can anyone please help me for this?
# Subject edited