Update hw2.c

Edited date_ok function