Added date() function that will convert argument to a DateTimeImmutable
object.