Malta became an EU member in May 2004 and began using the euro as currency in 2008 .