To clear any misunderstandings, the bible makes it evident that during the war in heaven the earth was already created, but when it all started meaning when, when Lucifer was created and then decieded to want to be "like God" may have very well been before earth was in existence. Hope that helps!