Both example sentences are correct, and they mean more or less the same thing. Compared to the straightforward "I wrote it in 2000", the sentences imply that, in the context, the year 2000 is a long time ago. So, the author is emphasising that he wrote it at an early date -- for example, in order to point out that "he was right first".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.