Class ToDateFunction