Allow for passing on JS date object