I have a date in cell k2 and a date in q2.

I want a formula that will tell me if the date in q2 is greater than the date in k2 please bring back 1 if the date is less than bring back 0.