'compare' sounds generic, but this is far from generic, I would rather see something like 'dateGreaterThan'.  Also for your comment, some style:
// Function ... their date.

^notice the space, the capitalized F and a period at the end.