

{"id":51,"date":"2026-05-29T21:32:49","date_gmt":"2026-05-29T21:32:49","guid":{"rendered":"https:\/\/apropostechsolutionscorp.ca\/blog\/?p=51"},"modified":"2026-06-02T18:43:48","modified_gmt":"2026-06-02T18:43:48","slug":"libreoffice-calc-day-0","status":"publish","type":"post","link":"https:\/\/apropostechsolutionscorp.ca\/blog\/2026\/05\/29\/libreoffice-calc-day-0\/","title":{"rendered":"LibreOffice Calc: Day 0"},"content":{"rendered":"\n<h2>On spreadsheets, date and time calculations are important. What about numeric representations?<\/h2>\n<p>\nToday I entered 2026-may-29 on a LibreOffice Calc spreadsheet, then pressed Enter. It self-converted to 2026-05-29. Next, I clicked &#8220;Format as Date.&#8221; It answered with 46171.<\/p>\n<p>\nI wondered how it was getting that number, so looked it up. Apparently, by default in LibreOffice Calc, Day 0 was Dec 30, 1899. Every day since increments the date by 1. Therefore, Jan 1, 1900, as a numeric date, is 2. Jan 1, 1901, 365 days later, is 367, and so on. (1900 was not a leap year, believe it or not. I was surprised, too; that&#8217;s for another post.)<\/p>\n<p>\nOn spreadsheets, dates are normally compared with other dates, so the &#8220;zero reference&#8221; might not matter too much, so long as it&#8217;s consistent. However, Excel&#8217;s day 1, apparently, is January 1, 1900 (whereas LibreOffice thinks that&#8217;s day 2, it seems).<\/p>\n<p>\nTherefore, one wonders: how compatible are LibreOffice Calc and Excel spreadsheets? Well, it seems that a LibreOffice Calc sheet can be saved in xlsx format. What about changing the default start date? Apparently, one can do that as well.<\/p>\n<p>\nThis post is spilling in numerous directions; I plan to follow up. For now, at least, it seems clear how 2026-05-29 becomes 46171 on a LibreOffice Calc spreadsheet.<\/p>\n<p>\nSource:<\/p>\n<p><a href=\"https:\/\/help.libreoffice.org\/latest\/en-US\/text\/scalc\/01\/04060102.html\">LibreOffice 26.2 Help: Date and Time Functions<\/a><\/p>\n<p><a href=\"https:\/\/support.microsoft.com\/en-us\/office\/datevalue-function-df8b07d4-7761-4a93-bc33-b7471bbff252\">Microsoft Support: DATEVALUE function<\/a><\/p>\n<p><a href=\"https:\/\/learn.microsoft.com\/en-us\/answers\/questions\/5249322\/why-does-microsoft-excel-considers-29-02-1900-to-b\">learn.microsoft.com: &#8230;1900 is not a leap year as a century needs to be divisible by 400 to be a leap year.<\/a><\/p><p><a href=\"https:\/\/apropostechsolutionscorp.ca\/blog\/\">-JS<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On spreadsheets, date and time calculations are important. What about numeric representations? Today I entered 2026-may-29 on a LibreOffice Calc spreadsheet, then pressed Enter. It self-converted to 2026-05-29. Next, I clicked &#8220;Format as Date.&#8221; It answered with 46171. I wondered how it was getting that number, so looked it up. Apparently, by default in LibreOffice [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,9],"tags":[11,12,13,15,14],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-libreoffice-calc","category-spreadsheets","tag-date-and-time","tag-date-format","tag-day-zero","tag-leap-years","tag-libreoffice-calc-vs-excel"],"_links":{"self":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":9,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apropostechsolutionscorp.ca\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}