Description: When a column with numbers of days of a month is formatted to date day (Code TT.) the numbers are one number less then before (number 1 turns to 31) Actual Results: column with number of days of a month extracted from a dato column formatted as date day Expected Results: every number shows with one less for example 2 instead of 3 Reproducible: Always User Profile Reset: No Additional Info: the numbers should be unchanged
If you add 1 through 31 into a column and format using a date format, then you tell LibreOffice to interpret these numbers as date, but to show only the day of the date. And according standard setting of LibreOffice setting day 0 is 1899-30-12, 1=1899-31-12 (DD-formatted=31) , 2=1900-01-01 (DD-formatted=01), 3=1900-01-02(DD-formatted=02) and so on until TODAY()=44117 (DD-formatted=01). See also http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2.html#__RefHeading__1017888_715980110 This is not a bug.
Correction: TODAY()=44117 (DD-formatted=13).
(In reply to Uwe Auer from comment #1) Correction: If you add 1 through 31 into a column and format using a date format, then you tell LibreOffice to interpret these numbers as date, but to show only the day of the date. And according standard setting of LibreOffice setting: Day=0: 1899-12-30 (DD-formatted=30) Day=1: 1899-12-31 (DD-formatted=31) Day=2: 1900-01-01 (DD-formatted=01) Day=3: 1900-01-02 (DD-formatted=02) and so on until TODAY()=44117: 2020-10-13 (DD-formatted=13) > See also > http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part2. > html#__RefHeading__1017888_71598011 This is not a bug.