In Java, given a timestamp, how to reset the time part alone to 00:00:00 so that the timestamp represents the midnight of that particular day ?
In T-SQL, this query
If you're using commons lang you can call DateUtils.truncate. Here's the javadoc documentation.
DateUtils.truncate
It does the same thing @Alex Miller said to do.