Added ability to pass Date objects as filter values

Took me a little time to figure out the date format sunlight wanted, so I figured it might be useful to build the conversion right into the filter function.