Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Function - days in month | ||
---|---|---|---|
Product: | Calc | Reporter: | rjbutler <russell> |
Component: | code | Assignee: | daniel.rentz |
Status: | CLOSED NOT_AN_OOO_ISSUE | QA Contact: | issues@sc <issues> |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOo 1.1 Beta | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
rjbutler
2003-05-01 02:11:29 UTC
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 |