From the code
oCell = ThisComponent.CurrentController.ActiveSheet.GetCellByPosition(0, 1)
.
.
oCell.Value = DateSerial(2019, 10, 25)
oCell = ThisComponent.CurrentController.ActiveSheet.GetCellByPosition(0, 2)
oCell.Formula = "=A2+45"
How can I get day, month and year from cell A2 separately in Integer or String ?