used date conversion from date.pyx