All three are grammatical, but you wouldn't say any of them in real speech. This is grammar textbook-type English, not real world English. In real speech you'd probably say them something like: It wasn't until the next day that we realized how important it was.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.