The probable times (suggestion of the time of writing) each book of the Old Testament was written is as follows:
1. Job -- 2150 B.C.
2. Pentateuch -- 1402 B.C. (Gen., Ex., Lev., Num., Deut.)
3. Joshua -- before 1350 B.C.
4. Judges and Ruth -- before 1050 B.C.
5. Psalms -- before 965 B.C.
6. Proverbs, Ecclesiastes, Song of Solomon -- before 926 B.C.
7. 1 and 2 Samuel -- before 926 B.C.
8. 1 Kings and 1 Chronicles -- before 848 B.C.
9. Obadiah -- 848 B.C.
10. Joel -- 835 B.C.
11. Jonah -- 780 B.C.
12. Amos -- 765 B.C.
13. Hosea -- 755 B.C.
14. Isaiah -- 750 B.C.
15. Micah -- 740 B.C.
16. Jeremiah and Lamentations -- 640 B.C.
17. Nahum -- 630 B.C.
18. Habakkuk and Zephaniah -- 625 B.C.
19. Ezekiel -- 593 B.C.
20. 2 Kings and 2 Chronicles -- 539 B.C.
21. Daniel -- before 538 B.C.
22. Haggai and Zechariah -- 520 B.C.
23. Esther -- after 476 B.C.
24. Ezra -- 458 B.C.
25. Nehemiah -- after 445 B.C.
26. Malachi -- 432 B.C.
The New Testament was written over a period of about fifty years (approximately A.D. 50-100), by eight separate authors.
A suggested chronological order and possible dating of the New Testament books.
1. James -- A.D. 49 (written from Jerusalem)
2. 1 and 2 Thessalonians -- A.D. 52 (written from Corinth)
3. 1 Corinthians -- A.D. 55 (written from Macedonia)
4. 2 Corinthians -- A.D. 56 (written from Macedonia)
5. Galatians -- A.D. 57 (written from Ephesus)
6. Romans -- A.D. 58 (written from Corinth)
7. Luke -- A.D. 59 (written from Caesarea)
8. Acts -- A.D. 60 (written from Rome)
9. Philippians, Colossians, Ephesians, Philemon -- A.D. 61,62
(written from Rome)
10. Matthew -- A.D. 63 (written from Judea)
11. Mark -- A.D. 63 (written from Rome)
12. Hebrews -- A.D. 64 (written from Jerusalem)
13. 1 Timothy -- A.D. 65 (written from Macedonia)
14. 1 Peter -- A.D. 65 (written from Babylon)
15. 2 Peter -- A.D. 66 (written from unknown)
16. Titus -- A.D. 66 (written from Greece)
17. Jude -- A.D. 67 (written from unknown)
18. 2 Timothy -- A.D. 67 (written from Rome)
19. John -- A.D. 85-90 (written from Ephesus)
20. 1 John -- A.D. 90-95 (written from Judea)
21. 2 and 3 John -- A.D. 90-95 (written from Ephesus)
22. Revelation -- A.D. 90-95 (written from the Isle of Patmos)