TEXT function can be used in Excel to convert DATETIME column to a text column with provided format.
Code snippet
=TEXT(A1,"YYYY-MM-DD HH:mm:ss")
To YYYY-MM-DD
=TEXT(A1,"YYYY-MM-DD")
To AM/PM
=TEXT(A1,"YYYY-MM-DD HH:mm:ss AM/PM")
TEXT function can be used in Excel to convert DATETIME column to a text column with provided format.
=TEXT(A1,"YYYY-MM-DD HH:mm:ss")
=TEXT(A1,"YYYY-MM-DD")
=TEXT(A1,"YYYY-MM-DD HH:mm:ss AM/PM")
View or add your thoughts below