[Solved] 2-digit date conversion inconsistency

Discuss the spreadsheet application
Post Reply
jbilliter
Posts: 5
Joined: Mon Dec 28, 2020 9:54 pm

[Solved] 2-digit date conversion inconsistency

Post by jbilliter »

Test condition: I have 2 short form dates (mm/dd/yy) in a csv file 30 days apart
12/06/29
01/05/30
When I read the file with calc (using other options Detect special numbers)
and click on each cell
the first one is 12/06/2029
but the second one is 01/05/1930 (I expected 2030)

Expanding the example, any date from 2025 to 2029 converts correctly, but any date from 2030 on converts to xx/xx/19xx
And if I then format cells to a longer date format, it verifies the problem
Of course if I use the longer form for the dates (mm/dd/yyyy), everything is correct.

Windows 10
Last edited by robleyd on Mon Oct 06, 2025 7:29 am, edited 1 time in total.
Reason: Tag Solved, add green tick
Open Office 4.1.8 installed on Windows 10
FJCC
Moderator
Posts: 9571
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: conversion to date inconsistency

Post by FJCC »

There is a setting for changing this. Choose the menu item Tools -> Options and expand the OpenOffice list on the left. Click on General and increase the year that defaults to 1930.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
MrProgrammer
Moderator
Posts: 5338
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: 2-digit date conversion inconsistency

Post by MrProgrammer »

jbilliter wrote: Mon Oct 06, 2025 2:35 am Expanding the example, any date from 2025 to 2029 converts correctly, but any date from 2030 on converts to xx/xx/19xx
Date windowing
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.6, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
jbilliter
Posts: 5
Joined: Mon Dec 28, 2020 9:54 pm

Re: 2-digit date conversion inconsistency

Post by jbilliter »

Thanks FJCC
I was able to change what you described to 2000. Now all my dates are in this century as I wanted.

and thanks MrProgrammer for the link to Date windowing information
Open Office 4.1.8 installed on Windows 10
Alex1
Volunteer
Posts: 838
Joined: Fri Feb 26, 2010 1:00 pm
Location: Netherlands, EU

Re: [Solved] 2-digit date conversion inconsistency

Post by Alex1 »

If a custom template is used, this setting must be changed in the template in order to use it as the default.
AOO 4.1.15 & LO 25.2.5 on Windows 10
Post Reply