added automatic chosing of date time field