clone DateTime parameters to avoid modifying the references