How do I get to know if a date has passed or not?

Can you please attach and send an xaml file ?