Add documentation of API function getdate