You state the passages you quote “point to the end times”. However you really can’t ‘lump’ these together - Yes they are about end times, but, actually very different ‘times’ in the end times. We need to see where these two, the Matthew passages and the Daniel passage fit.
And, as anything that is eschatological, there are going to be differing views, sometimes very different, so you’ll need to decide how to consider the view I forward here.
The two passages from Matthew are ‘Kingdom Parables’. Specifically the Kingdom of Heaven. Jesus came and offered the Jews the opportunity to ‘bring in’ the Kingdom. This would require them to accept him as Messiah. Which the didn’t do. And it’s this rejection that puts these two Matthew accounts into ‘the future’, into the ‘end times’. But where about’s?
The ‘kingdom of heaven’ is an earthly kingdom. Jesus reigns in this kingdom. With an iron rod, ruling in righteousness, that is, expecting ‘right living’. This requires passing through ‘the narrow gate’ - not easy for ‘unbelievers’ - And, it will come - but first the Jews (Jewish leaders) need to accept Him as Messiah. That essential aspect hasn’t changed. To get the nation to do this will require that nation to be brought to a place where they have no choice but to cry out to Him. The point of no return. This being the purpose of what many call ‘the Tribulation’.
And it’s the end of that Tribulation period that Daniel is talking about. That time when the nation (Israel) repents, and accepts their Messiah. Many will realise that Jesus was and is their Messiah, and this repentance results in “Many shall be purified, and made white”. This being during the times of Tribulation, times of extreme wickedness.
Following this, that is, the end result of that period of time that Daniel talks about, the Millennium reign, the Kingdom of Heaven will begin. So the passages you quote fit very different scenarios, and can not be compared.