Slovakia joined both NATO and the EU in the spring of 2004 and the euro area on 1 January 2009 .