How long do I have to be married to file jointly?

I already filed my taxes jointly with my spouse. My wife says we spouse to be married for a financial year long to file jointly for that year. Is that correct? Did I make a mistake filing my taxes jointly?