ref
early 17th century: non-standard spelling of that, used in representing speech.
dat
representing the pronunciation of that in West Indian, Irish, or African-American vernacular speech, from 1680s.