According to the Maastricht Treaty EU members are obliged to adopt euro in the future, upon meeting certain monetary and budgetary convergence criteria, but not all the member states have to do so. Denmark and United Kingdom negotiated exemptions, so they keep using their own official currencies.
It usually takes longer period of time to meet the convergence criteria, because the adoption of Euro requires economic stability.