Ian Davies

Ian Davies

  • NA
  • 28
  • 1.6k

Date Formatting in Text Box Content

Nov 12 2020 10:25 AM
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)