A 50-year-old man has pleaded guilty to the attempted murder of his ex-partner in Dublin nearly two years ago.

Denis Leahy, from Queen Street in Dublin 7, was charged with attempting to murder Rose Kenny, 51, at School Street Flats, Dublin 8 on 23 September 2014.

On Monday at the Central Criminal Court, Leahy pleaded not guilty to the charge.

Leahy had pleaded guilty to intentionally or recklessly causing serious harm to Ms Kenny at the same address on the same date.

On Monday, Mr Justice Patrick McCarthy told the jury of nine men and three women that the trial was expected to last four days before Mr Justice Paul Butler.

Opening the prosecution case this afternoon, Mr Patrick Marrinan SC told the court that the jury would hear that the accused launched into a vicious assault on Rose Kenny on September 23 where she was stabbed "a large number of times."

At 2.40pm today, Mr Sean Gillane SC asked for his client to be re-arraigned on count one on the indictment.

Leahy then pleaded guilty to the attempted murder of Ms Kenny.

Mr Marrinan told Mr Justice Butler that the case would not be proceeding and asked that the accused be remanded in custody.

Mr Justice Butler told the jury: "This man has pleaded guilty to everything which he has been charged with. Your function is now over."

Leahy was then remanded in custody ahead of his sentence hearing on July 14 when a victim impact statement will be read to the court.