Exhibit 23 INDEPENDENT AUDITOR'S CONSENT We consent to the incorporation by reference in Registration Statements No. 333-60998, 333-61102, 333-104422 and 333-106059 of James Monroe Bancorp, Inc. on Forms S-8 of our report, dated January 7, 2005, relating to the consolidated balance sheets of James Monroe Bancorp, Inc. and Subsidiaries as of December 31, 2004 and 2003, and the related consolidated statements of income, changes in stockholders' equity and cash flows for the years ended December 31, 2004, 2003 and 2002 appearing in this Form 10-K of James Monroe Bancorp, Inc. for the year ended December 31, 2004. /s/ Yount, Hyde & Barbour, P.C. Winchester, Virginia March 18, 2005