change string time to datetime time