require date so Date.today works
dry up our code a bit and reduce duplication