Daniel opens his account with a precise indication:
“In the third year of the reign of Jehoiakim king of Judah, Nebuchadnezzar king of Babylon came to Jerusalem and besieged it.” (Daniel 1.1)
Jeremiah provides another reference point of his own:
“In the fourth year of Jehoiakim the son of Josiah, king of Judah, which was the first year of Nebuchadnezzar king of Babylon.” (Jeremiah 25.1)
Jeremiah 46 also associates the battle of Carchemish with this fourth year:
“… Nebuchadnezzar king of Babylon defeated the army of Pharaoh Necho in the fourth year of Jehoiakim the son of Josiah, king of Judah.” (Jeremiah 46.2)
Taken in isolation, the texts therefore seem to place the events in two different years of Jehoiakim's reign.
The difficulty must, however, be stated precisely: Jeremiah 46.2 explicitly dates the battle of Carchemish, whereas Daniel 1.1 speaks of an intervention against Jerusalem. The two texts therefore do not describe exactly the same event, even though they belong to the same historical context.