We can be even more precise. Daniel was put into it's final form between 167 and 164 BCE. We know this because the prophecies about events before this time are amazingly accurate but fail miserably after this time frame. Some of the earlier parts of the book are probably much older but I have no specific information in that regard.
If God wanted us to be Atheists we'd be born that way.