Convert date to month and year in Excel and Google Sheets

=TEXT(A2*29,"yyyymm")

A2 = date cell

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