add test code for date time convert