Jack R. Lundbom notes that the book of Jeremiah was composed before and just after the destruction of Jerusalem.
Jack R. Lundbom, “Jeremiah, Book of,” in The Anchor Yale Bible Dictionary, ed. David Noel Freedman, 6 vols. (New York: Doubleday, 1992), 3:06–707
JEREMIAH, BOOK OF. The book of Jeremiah contains the legacy (Heb dibrê in 1:1 and 51:64 covers both “words” and “acts”) of Jeremiah the prophet. The earliest record contained is of Jeremiah’s boyhood call to be a prophet in the 13th year of King Josiah, i.e., 627 B.C. Jeremiah is last heard from in Egypt following the destruction of Jerusalem, i.e., sometime after 586 B.C. The collection of prophetic utterances, personal dialogues, autobiographical reports, and liturgical compositions, supplemented by a rich corpus of biographical and sermonic material written in another hand, combine to give us the most complete profile of any Hebrew prophet, also one of the best portraits of any known figure out of the ancient world. See JEREMIAH (PROPHET).