Apache OpenOffice (AOO) Bugzilla – Issue 13980
Function - days in month
Last modified: 2003-09-08 16:55:29 UTC
The function "daysinmonth()" seems to return a result of 31 whatever value is inserted in the brackets. Not good when one wants to evaluate February or June entries.
Hi Daniel, at least the result field in the function autopilot displays 31 if you enter the date value 02/02/03. If you use a dot as separator, this works as expected. Frank
As I remember, this has been discussed several times before... ;-) 02/02/03 is (and will be in the future) 2 divided by 2 divided by 3, which results in 0, which is interpreted as 1.1.1900, which results in 31 days using the DAYSINMONTH function. To be locale independent, just use the DATE function: DAYSINDATE( DATE( 2003; 2; 2 ) )
invalid->closed
Hi Daniel, thanks for clarification. Frank
Sorry to have raised a red herring, but I did try to find an issue reagrding this. Perhaps the trap could be pointed out more explicitly in the help files. Russell