I have tried multiple codes such as this
Sub changeformat() Dim yrCode As String, mnthCode As String, dyCode As String Dim dtCode As String Dim nM As