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.

Convert number stored as a text to date in Excel

How to convert a number stored as a text to date in Excel?
Convert number stored as a text to date in Excel

CONVERT NUMBER STORED AS A TEXT TO DATE — EXCEL FORMULA AND EXAMPLE

Convert number stored as a text to date in Google Sheets

How to convert numbers stored as text to date in Google Sheets?
Convert number stored as a text to date in Google Sheets

CONVERT NUMBER STORED AS A TEXT TO DATE — GOOGLE SHEETS FORMULA AND EXAMPLE