C# Date Time Picker to Text?
- by user3691826
Im trying to get a text from a file into date format for a label.
What i currently have works great for a DateTimePicker however im wanting to now use a label to display the date rather than a DateTimePicker.
This is what currently works when getting the value to a DateTimePicker:
dateTimeMFR.Value = this.myKeyVault.MFRDate;
and this is what im attempting to make work in a label:
DateTimePicker myDate = new DateTimePicker();
myDate.Value = myKeyVault.MFRDate;
txtMFR.Text = myDate.Text;
Thanks for any help on the matter.