The CDate() method replicates in Python the behavior of the Basic builtin function with the same name, except that it returns its unique input argument when it could not be recognized as a valid date, while Basic raises an DataType error. The method is introduced to make it easy to Python devs to convert numbers stored in Calc cells and representing dates to their corresponding datetime.datetime instance. Change-Id: Ifd8fbd4bf7a97bf6b91cf481c09d75ec14159916 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115989 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>