Comparing date with system date

I'd like to know how can I enter a date so it can be compared with system date and how can I compare them?
Topic archived. No new replies allowed.