Are there words in which the letter D is pronounced like T (and they are not those words which ending with the past tense suffix of -ed)?
Depending on what you mean by "pronounced like T", certain words where /d/ comes after /s/ or before coda /θ/ might count. To my ear, disdain sounds like "distain", and breadth sounds like "bretth".
In English, the "voiced" plosive phonemes /d/, /b/ and /g/ are not always strongly voiced, and sometimes they may show partial assimilation when adjacent to voiceless obstruents. A "devoiced" /d/ sounds quite similar to an unaspirated /t/ (I don't know enough to say if an actual merger is possible). For example, I find it hard to hear a difference between the sound of "sd" /sd/ in words like misdeed, misdemeanor, disdain and the sound of "st" /st/ in words like mistake, misty, sustain.
I also hear regressive assimilation of voicelessness in my pronunciation of the words width, breadth, hundredth: the "dth" /dθ/ in these words sounds a lot like the /tθ/ in eighth.
When /d/ comes before a voiceless obstruent that is not in the same syllable, it may be phonetically devoiced, but the phonological opposition with /t/ is generally still clearly marked by the length (or in some accents, quality) of the preceding vowel. So a word like bloodthirsty does not sound like (a hypothetical word) "blutthirsty".
None of the answerers has mentioned the word in which the D is pronounced /t/.
As far as I know, there is only one English word in which the D is pronounced /t/. And it is midst.
According to Cambridge English Dictionary, midst has two pronunciations; /mɪtst/ and /midst/. /mɪtst/ is much more prevalent than /midst/.
There are also some other words in which the D gets devoiced like handpick, midpoint, grandstand etc.
I think it's the reverse: Ts are often pronounced like soft Ds in American English when the consonant appears in the middle of the word and when the syllable is not stressed. For example:
Keep in mind, it's not consistent, and the pronunciation might be different from word to word and from person to person.
But I can't think of any words where the D is pronounced T.
More info here: