There are two main ways to determine when a Bible book was written: internal information and external information. Internal evidence can involve style of writing as well as people, places, and events mentioned in the book. External evidence can also be used to help date when a book was written. Specific books can be determined within a much smaller window of time. For example, the apostle Paul died sometime in the mid-60s, meaning all of his thirteen writings were finished before this time. In some cases, external evidence can help show that one book was written before another without providing the exact date it was written. For example, Luke was likely written just before Acts by the mid-60s. Even when there is some disagreement regarding the date of a Bible book's writing, even among scholars who believe the Bible to be God’s inspired, inerrant Word, this does not mean that the content of the book is in dispute.
Internal evidence for determining when the books of the Bible were written can involve style of writing as well as people, places, and events mentioned in the book. For example, Daniel used Aramaic language in some places and wrote from Babylon, indicating a particular seventy-year period during which the Jews had been deported to Babylon. He also mentioned the exact times when certain kings reigned and which year he recorded certain events to help narrow the time period in which the book was written.
External evidence can also be used to help date when a book was written. For example, all twenty-seven New Testament books were written following the death and resurrection of Jesus, around AD 30—33. The end date of these books also must have taken place by the time of the deaths of the writers. Tradition holds that Revelation was written by the apostle John near the end of the first century. Therefore, external evidence shows all twenty-seven books of the New Testament were composed between AD 30—96.
In some cases, external evidence can help show that one book was written before another without providing the exact time. For example, Luke was likely written just before Acts by the mid-60s and was possibly completed in Rome sometime before the persecution of Christians related to the fires at Rome in AD 64. Sometimes specific books can be determined within a much smaller window of time. For example, Paul’s prison epistles—Ephesians, Philippians, Colossians, and Philemon—were written during the two years he lived under house arrest in Rome, in approximately AD 60—62.
Scholars who believe and affirm the Bible to be God’s inspired, inerrant Word do not always agree on the estimated dates of writing. However, that does not mean the content of the books is in question. A good study Bible such as an ESV or NIV Study Bible or a Bible commentary will lay out the various lines of evidence for the dating of the books.