[Solved] Calc converts '05/04/1999 to date number

Discuss the spreadsheet application
Post Reply
User avatar
morphingstar
Posts: 100
Joined: Mon Mar 28, 2011 5:52 am
Location: Mx

[Solved] Calc converts '05/04/1999 to date number

Post by morphingstar »

text date to number CALC.jpg
I downloaded a csv in which the date is in text form.
Could not find a function to convert to date (win10 number)
DATE text DATE TRANSACTION ID DESCRIPTION QUANTITY SYMBOL

05/04/2021 34591480999 Sold 24 LASR

I considered string extraction but could not find a way to convert concatenated to number.
Search "calc convert '05/04/1999 to date number" brought nothing.

Considering the age of csv file format a solution might exist.
Thanks for help.
Last edited by Hagar Delest on Tue Jun 22, 2021 7:54 am, edited 1 time in total.
Reason: tagged solved.
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
User avatar
morphingstar
Posts: 100
Joined: Mon Mar 28, 2011 5:52 am
Location: Mx

Re: calc convert '05/04/1999 to date number

Post by morphingstar »

solution lies in the structuring menu, shown below.
csv text to number convertion 20210621a.jpg
OO 4.1.6 on Win10. Member since StarOffice 7. Alternative name "morphingstar2" when other fails. Use Writer, Calc (as DB + Calc), Draw. Impress mainly for Eyedropper and animating GIFs. Updated 20190716.
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: calc convert '05/04/1999 to date number

Post by Villeroy »

In the text import dialog you specify how to interprete data.
Language should be English (USA) because of the US dates. English (Canada) makes sense with currency symbol CAD.
The dates to be imported is not Y-M-D. It is M/D/Y.
With the right language setting you don't need column specific settings unless there are exceptions.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply