In Excel, if you want to convert date to text with yyyy-mm-dd format, you can use formula. 1. Select a blank cell next to your date, for instance. I1, and type this formula =TEXT(G1, "yyyy-mm-dd"), and press Enter key, then drag AutoFill handle over the cells needed this formula.