The learned are not agreed as to the time when the Gospel of John was written some dating it as early as the year 68, others as late as the year 98 but it is generally conceded to have been written after all the others.
The foundation of our religion is a basis of fact - the fact of the birth, ministry, miracles, death, resurrection by the Evangelists as having actually occurred, within their own personal knowledge.