Rooney apologised for his "unforgivable lack of judgement" in a statement issued after he entered his guilty plea at Stockport Magistrates' Court, near Manchester in northwest England.
The 31-year-old was arrested in the early hours of Sept. 1 while driving over the limit in the north-western county of Cheshire.
Television footage showed him arriving at court wearing a dark suit.
In addition to the two-year driving ban, Rooney was ordered to perform 100 hours of unpaid work as part of a 12-month community order.