Search
Articles
FAQs
Login
All Questions
New Question
C# .NET - hhow to change this code from web application to windows applications
Asked By
vamsi krishna
on 17-Apr-13 09:19 PM
how to change this code web application to windows application
txtDate.Text = Calendar1.SelectedDate.ToString("dd-MM-yyyy");
shital patil
replied to
vamsi krishna
on 26-Apr-13 05:49 AM
Hi Vamsi,
In windows there is a datetimepicker control instead of 'calendar' and your code can be changed as below:
textBox1.Text = dateTimePicker1.Value.ToString("dd-MM-yyyy");