test for datetime