Unable to use datediff function in Apache OpenOffice Calc

5,038

DATEDIFF seems to be OpenOffice Base/SQL function, not Calc function. It can be used in Calc as Basic macro custom function.

Share:
5,038

Related videos on Youtube

Peter Mortensen
Author by

Peter Mortensen

Updated on September 18, 2022

Comments

  • Peter Mortensen
    Peter Mortensen over 1 year

    I am unable to get a result by using the command =DATEDIFF('dd', '2007-08-01', '2007-09-01') in Apache OpenOffice Calc.

    Even using two columns of dates and using the formula =DATEDIFF('dd','A2','B2'), I am unable to find the difference between dates.

    How can I fix this?

  • PleaseStand
    PleaseStand almost 12 years
    I think there should be double quotes around the dates in your example.
  • cyberha4
    cyberha4 almost 12 years
    @PleaseStand: thank you for the hint, you were right.
  • fixer1234
    fixer1234 almost 8 years
    Can you expand your answer a little to explain how this works? Thanks.