How do I convert text MM/DD/YYYY HH:MM:SS to date-time YYYY-MM-DD HH:MM in Calc
Hello,
if it is really text, then
- Select cells containing the text (or the column)
Data -> Text to Columns...
- Select dropdown in Fields Column type:
Date (MDY)
(to activate click the heading which by default is named Standard) - Click
OK
-
Format Cells -> Tab: Numbers
and enterYYYY-MM-DD HH:MM
in Format Code - Click
OK
Hope that helps.
If the answer is correct or helped you to solve your problem, please click the check mark () next to the answer.
Great!! Thank you! It works.
In your third step I was choosing Date (YMD) and getting nowhere.
So, here’s what I do:
- Open the csv document.in LibreOffice. This opens a Text Import window in LibreOffice.
- Under Fields - click on Standard for the appropriate column.
- Then select Column type Date (MDY) - [not YMD as I was doing before]
- Click OK
- The document opens in LibreOffice.
- Select the column or cells.
- Go to the Format Cells → Tab: Numbers and enter YYYY-MM-DD HH:MM in Format Code
- Click OK