I have a date data from database which the data type is date. I fetch the data from DB using DataSet and populate it to a textbox control. The resulting date contains "data and time - 10/3/2016 12:00 AM". What I wanted is this result (10/3/2016 - where, 10 is day and 3 is month).
below is the snippet of my code:
lblIncepDate.Text = ds.Tables[0].Rows[0]["IncepDate"].ToString();
lblExpDate.Text = ds.Tables[0].Rows[0]["ExpDate"].ToString();
Hope somebody can share a knowledge.


Amine Touahria109 reputationPosted Oct 17, 2016, 4:44 AM EDT
Devendra KumarRank #3,132 · 457 reputationPosted Oct 17, 2016, 4:42 AM EDT
Milan Prajapati107 reputationPosted Oct 17, 2016, 4:44 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Oct 17, 2016, 5:22 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 17, 2016, 5:24 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Oct 17, 2016, 5:33 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Oct 17, 2016, 5:42 AM EDT
Please have a look at below thread-
http://stackoverflow.com/questions/5050102/convert-datetime-to-date-format-dd-mm-yyyy
Jes SieRank #1,285 · 1.3K reputationPosted Oct 17, 2016, 6:00 AM EDT
Jes SieRank #1,285 · 1.3K reputationPosted Oct 17, 2016, 10:10 PM EDT