4
Answers

Date Formatting in Text Box Content

Ian Davies

Ian Davies

4y
533
1
Hi
 
I have run into an issue with date formating.
 
I have a form in WPF to recall data from a SQL table which includes a DATE. When it reclalled it is showing the correct date but also the time set at midnight which is not needed. How do I format the C# code so its just the date showing?
 
This is the data recall line
 
txt_added.Text = sqlreader.GetValue(3).ToString(); 
 
Many Thanks for any help. 
 
 
Answers (4)