Can I compare the current date on my device to a one entered in a date picker

You could adapt this using the datepicker.