how to set the value of a textbox textmode=date asp.net csharp

Code Example - how to set the value of a textbox textmode=date asp.net csharp

                
                        txtBoxDate.Text = Calendar1.SelectedDate.Date.ToString("yyyy-MM-dd");