get the date and time of the datetime field