Clamp Function Python Format Date