David II ( March 5 , 1324 -- February 22 , 1371 ) King of Scots , son of King Robert the Bruce by his second wife , Elizabeth de Burgh ( d. 1327 ) , was born at Dunfermline Palace , Fife . David II was the elder and only surviving son of Robert I of Scotland and his second wife , Elizabeth de Burgh . He was born on 5 March 1324 at Dunfermline Palace , Fife .