I am exporting data from an external source. It has a date format as mm-dd-yy hh:mm. Post pasting it in Excel the format shows as General.
mm-dd-yy hh:mm
General
If the cell will not change format, it may be a text string. Try using;
=DATE(2000+MID(A1,7,2),LEFT(A1,2),MID(A1,4,2)) + TIME(MID(A1,10,2),RIGHT(A1,2),0)
and set the proper formmat: