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 SinghPosted Nov 12, 2020, 1:32 PM
Ian DaviesPosted Nov 12, 2020, 2:16 PM
Ian DaviesPosted Nov 12, 2020, 12:40 PM
Sachin SinghPosted Nov 12, 2020, 11:00 AM