Set current datetime when none passed.