blah blah blah is here! blah blah » Close

up0down
link

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");

last answered 2 years ago

1 answers

up0down
link

This shoud do it:
date_TimeTextBox.Text = dateTimePicker1.Value.ToString("dd/MM/yyyy");

up0down
link

Ah Yes - that's it, Thanks.
Mike

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!

Feedback