The Doctor's Daughter is easy, because Donna realizes the sequence numbers on the walls are dates (apparently in ISO format and the Gregorian calendar?):
Donna: Yeah! But you're, you're still not getting it. The first number I saw back there, was 6012-07-17. Well, look at the date today!
We know that episode takes place over something like a week, and ends on the 24th, so that places it from around 6012-07-17 to 6012-07-24.
As far as I known 42 does not have any clues in it that place it in a specific time period. However, we know there are humans transporting cargo across the galaxy (they are in another star system "half a universe" away from Earth). Generally speaking, humans did not spread out very far into space until The Second Great And Bountiful Human Empire, which has been name-dropped many times, and occurs in the 42nd century. The ship is also using old tech (the Doctor thinks it should have been outlawed by this point), so it's unlikely to be any later than the 51st century -- where Jack Harkness and River Song are from -- because human technology has advanced to time travel by then.
Midnight is a complete bust, though again we can probably place it safely in the 42nd century or later if we assume everyone else on Midnight that looks human is human.