Dim dat As Date
dat = CDate(UserForm16.TextBox1)
With ThisWorkbook.Sheets("Traitement Absence").Range("B3")
.Value = CDate(UserForm16.TextBox1.Value)
.NumberFormat = Replace(Replace(Replace(UserForm16.TextBox1, Year(dat), "yyyy"), Format(Month(dat), "00"), "mm"), Format(Day(dat), "00"), "dd")
End With