adjust the datetime format