dat (Middle Dutch) comes from Old Dutch that, from Proto-Germanic þat, from Proto-Indo-European tód, from Proto-Indo-European to-, from Proto-Indo-European só — this; that.
dat (Middle Dutch): that; then, while; if, when