Thanks for the response Gilles Marceau.
Yes we can do it.
Use util.Date's toString() method to convert the date to String form and use String's equals() method.
String's equals() method takes only date into account and doesn't consider milliseconds.
Here is the code and output
[ February 18, 2007: Message edited by: rama murthy ]