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 TouahriaPosted Oct 17, 2016, 8:44 AM
Jes SiePosted Oct 18, 2016, 2:10 AM
Jes SiePosted Oct 17, 2016, 10:00 AM
Midhun TpPosted Oct 17, 2016, 9:42 AM
Please have a look at below thread-
http://stackoverflow.com/questions/5050102/convert-datetime-to-date-format-dd-mm-yyyy
Jes SiePosted Oct 17, 2016, 9:33 AM
Bikesh SrivastavaPosted Oct 17, 2016, 9:24 AM
Jes SiePosted Oct 17, 2016, 9:22 AM
Milan PrajapatiPosted Oct 17, 2016, 8:44 AM
Devendra KumarPosted Oct 17, 2016, 8:42 AM