TEXT value format_code Here value is the numeric value or reference to the cell that you want to convert. Formula 2 using CONVERT function. In the Formulas Helper dialog please select Date from the Formula Type drop-down list click to highlight Convert days to year month day in the Choose a formula list box then specify the number cell in the Number box and finally click the Ok button.
The number of days 829 appears in cell B2 of the worksheet.
If you want to convert the date to month and year only you can use yyyymm format code within the TEXT function in excel so you can write down the below TEXT formulaTEXT dateyyyymm. Months days 304167. Now the calculation result is output in the selected cell. The syntax of the TEXT function is.