right sqlite datetime format string with test case