← Back to all guides
Technology · 4 min READ

How to Convert Text Dates to Real Dates in LibreOffice Calc

How to Convert Text Dates to Real Dates in LibreOffice Calc guide illustration

Convert day-first, month-first, or year-first text into sortable Calc dates. Check both the stored value and a known booking before converting the whole column.

Quick note

Follow these steps at your own pace. Check product terms and prices directly with providers before purchasing.

Quick answer

Select a copy of the imported dates and choose Data → Text to Columns. Keep each date together in a single preview column, then set Column type to the order used in the source. Test one date whose month and day could be confused before converting the entire list.

Find out what 04/05 actually means

Suppose a booking export contains 04/05/2026 and 23/05/2026. The second entry points to day/month/year because 23 cannot be a month. If the export consistently uses that convention, the first booking is May 4. A month-first source could use the same first string for April 5. Check the export specification or a known booking if the file contains only ambiguous dates. Your computer’s regional setting tells you how Calc may display dates. It cannot tell you what the sender meant.

Convert a sample in a spare column

  1. Keep the original strings in column A. Copy a few representative cells, such as A2:A6, to a clear area starting at D2. Leave the header out. In another blank cell, enter =ISNUMBER(A2). Expect FALSE for text. If you get TRUE, check the existing value against the source before converting it again.
  2. Select D2:D6 and open Data → Text to Columns. For these slash-separated dates, choose Separated by and leave only Tab selected. The preview should show each complete date in one column. If it shows three columns, clear the slash separator. For composite fields that really do need separating, follow the guide to splitting a Calc column.
  3. Click the preview column header. Select the date type that matches your source, confirm the preview header reflects your choice, and click OK.
Known source conventionExampleColumn type
Day, month, year23/05/2026Date (DMY)
Month, day, year05/23/2026Date (MDY)
Year, month, day2026-05-23Date (YMD)

Check the value and its meaning

Enter =ISNUMBER(D2) in E2 and fill down. TRUE confirms the stored value is numeric. To check the calendar meaning, select the converted dates, right-click and choose Format Cells. On the Numbers tab, choose a Date format that spells out the month. The two day-first bookings should now read May 4 and May 23. If April 5 appears, return to the original strings and repeat with the correct order. Changing the display format cannot fix a swapped month and day. Once the dates match the source, you can group the pivot report by both month and year to keep different years separate.

Handle mixed or questionable rows separately

If the report combines day-first and month-first exports, group records by documented source and convert each group separately. Keep a row ID so you can match the results back. Leave blanks blank and flag impossible dates such as 31/04/2026 for correction. If an earlier import already replaced the original strings, reopen the source CSV and set its date column to Text to recover their spelling. Once the sample matches, convert the remaining records and keep an ODS copy before you export the cleaned data as UTF-8 CSV.

LibreOffice’s date column types · Calc’s ISNUMBER function

SHARE THIS GUIDE

Know someone who could use this?

DISCUSSION

Comments

Read or join the discussion.