When we are comparing Date instances, we usually just care about the date part and not the time Component. For more accurate comparison, it is sometimes desirable to remove the time component from a Date object. Below is an example on how to remove or clear time component from a Date instance in Groovy.