Douglas Harper's Etymology Dictionary
Jehosaphat
biblical name (II Sam. viii:16), used as a mild expletive in American English from 1857.