How to drive a date from DateTimepicker into a text field?

    1 answer 1

    Learn to search in msdn and google.
    Here is the answer: MSDN: DateTimePicker :: Value - property

     String^ Value; Value=this->dateTimePicker1->Value.ToString(); textBox0->Text = Value; 


    To extract only dates or any components from dateTimePicker1-> Value, here’s the material: MSDN: DateTime - structure
    Here is an example:

     textBox0->Text = dateTimePicker1->Value.Date.ToString(); 
    • time must be removed! leave only the date? and how to vote for your answer? - Vadim18
    • added to the answer. On the work of HashCode - hashcode.ru/faq - here is rather brief and detailed. - BogolyubskiyAlexey