Convert number stored as a text to date in Excel and Google Sheets

=DATE(RIGHT(A2,4),MID(A2,3,2),LEFT(A2,2))

A2 = data cell

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.