Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Showing only Date in ListView

$
0
0

Hi,

Anyone know how to format the Date Time Picker in C# to show Date only using DataReader in ListView. Below is the part of Code

OleDbDataReader dr = cmddr.ExecuteReader();

                while (dr.Read())
                {
                     dp_expDetail.Value = Convert.ToDateTime(dr["e_date"].ToString ());
              }

the above code is  showing date as well as time but i want it show only date




Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>