Change default date separator points to slashes.
KingK0ng
-
OOoForum Posted messages 3871 Registration date Status Membre Last intervention -
OOoForum Posted messages 3871 Registration date Status Membre Last intervention -
Hello everyone,
I am importing text using paste special and the dates are initially separated by dots. So I have to continuously do Ctrl H and replace them, but this process can be tedious when I have a lot of data with different intervals.
I would like to know if there is a way to automatically replace these dots with slashes. I found another method, but it's a bit tiring in the long run as well.
It's when I'm in the text import window, I select the column where the dates are located, then in the "column type" section, I choose the Date (DD/MM) option and then I get the slashes automatically when pasting.
Best regards
I am importing text using paste special and the dates are initially separated by dots. So I have to continuously do Ctrl H and replace them, but this process can be tedious when I have a lot of data with different intervals.
I would like to know if there is a way to automatically replace these dots with slashes. I found another method, but it's a bit tiring in the long run as well.
It's when I'm in the text import window, I select the column where the dates are located, then in the "column type" section, I choose the Date (DD/MM) option and then I get the slashes automatically when pasting.
Best regards
4 réponses
If by text import it refers to CSV, you just need to set the column as date (YMD) in the wizard.
--
Why hack MS Office when there is a free solution?
Use OpenOffice
--
Why hack MS Office when there is a free solution?
Use OpenOffice
Good evening Jean Pierre ^^
Yes, it’s in csv. As I mentioned in my initial message, the only method that works is if I set the column to (DD/MM) only. The operation is simple but on a long series of pastes it can become tiring, which is why I wanted to find a way to make the format DD/MM/YY the default when pasting, regardless of whether the source is in DD.MM.YY
I read somewhere that it was possible and that it had nothing to do with LibreOffice settings but rather with Windows itself, and that the date needed to be configured in the control panel > region and languages, but I'm not so sure..
Yes, it’s in csv. As I mentioned in my initial message, the only method that works is if I set the column to (DD/MM) only. The operation is simple but on a long series of pastes it can become tiring, which is why I wanted to find a way to make the format DD/MM/YY the default when pasting, regardless of whether the source is in DD.MM.YY
I read somewhere that it was possible and that it had nothing to do with LibreOffice settings but rather with Windows itself, and that the date needed to be configured in the control panel > region and languages, but I'm not so sure..
Thank you for your response, your formula works well but in my case I won't be able to use it because my data includes not only dates but also other texts, and everything is placed in a table where each value has its specific position.
So having the date in a different cell from its original position in the table won't work for me. I think I need to find a way that doesn't involve a formula.
we need an example
So I select A1, right-click, and perform a special paste. The date comes in A1 and the 5 names in A2, A3, A4, A5, and A6, all in the form of a table that can hold about thirty rows.
So in column A1, I have conditional formatting in each cell depending on the date.
So each element is in its place and if I had to make a modification, it would take me too much work because I would also have to move other nearby elements.
The ideal would be to do this without using a formula, but I don't know if it's feasible, meaning forcing the system to set the date format to dd/mm/yy by default even if the original paste format is dd.mm.yy.
To test
If there is an apostrophe at the beginning in A1 (for example '20.06.20) visible only in the formula bar when A1 is selected
Then
Select column A
Data > Text to Columns
Set the delimiter as '
No, there is no apostrophe at the beginning, just the date.