Comparing using access functions like getMonth