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.

Sachin SinghRank #66 · 26.2K reputationPosted Nov 12, 2020, 8:32 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 12, 2020, 6:00 AM EST
Ian Davies25 reputationPosted Nov 12, 2020, 7:40 AM EST
Ian Davies25 reputationPosted Nov 12, 2020, 9:16 AM EST