I'm trying to copy the value from a date time picker to a text field on button click, what code would work, something like the below?
date_TimeTextBox.Text = dateTimePicker1.ToString("DD/MM/YYYY");
blah blah blah is here! blah blah » Close
1 answers
This shoud do it:
date_TimeTextBox.Text = dateTimePicker1.Value.ToString("dd/MM/yyyy");
answered 2 years ago by:
17279
Ah Yes - that's it, Thanks.
Mike
answered 2 years ago by:
690
This post was imported from csharpfriends, if you have a similiar question please ask it again.
All previous members have been migrated, hope you enjoy the new platform!