Hi Programmers
Label2.Text = reader.GetString(25);
Label2.Text = reader.GetString(25);
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Esakki MuthuPosted Sep 19, 2016, 9:44 AM
Jisny AvPosted Sep 6, 2016, 6:19 AM
string str = DateTime.Now.Month + "/" + Convert.ToInt16(Label2.Text) + "/" + DateTime.Now.Year;
DateTime dt = Convert.ToDateTime(str);
Label2.Text = dt.ToString("dd/MMM/yyyy");
Tapan PatelPosted Aug 30, 2016, 4:44 PM
Vishal JadavPosted Aug 30, 2016, 10:23 AM
Rajeesh MenothPosted Aug 30, 2016, 12:24 AM
Abdalla ElawadPosted Aug 29, 2016, 11:13 AM
Abdalla ElawadPosted Aug 29, 2016, 11:12 AM
Vasanth NatarajanPosted Aug 29, 2016, 10:53 AM
Abdalla ElawadPosted Aug 29, 2016, 10:35 AM
Vishal JadavPosted Aug 29, 2016, 10:22 AM
Vasanth NatarajanPosted Aug 29, 2016, 9:24 AM
Abdalla ElawadPosted Aug 29, 2016, 8:20 AM
Vinay SinghPosted Aug 29, 2016, 8:04 AM
Rajeesh MenothPosted Aug 29, 2016, 7:58 AM
Vasanth NatarajanPosted Aug 29, 2016, 7:49 AM
{
dt= null;
Label3.Text= "";
}
else
{
dt= Convert.ToDateTime(reader.GetString(25));
Label3.Text= String.Format("{0:yyyy-MM-dd}", dt);
}
Abdalla ElawadPosted Aug 29, 2016, 7:44 AM
Rajeesh MenothPosted Aug 29, 2016, 7:38 AM
Abdalla ElawadPosted Aug 29, 2016, 6:35 AM
Vinay SinghPosted Aug 29, 2016, 6:33 AM
Abdalla ElawadPosted Aug 29, 2016, 6:32 AM
Vinay SinghPosted Aug 29, 2016, 6:23 AM
Abdalla ElawadPosted Aug 29, 2016, 6:05 AM
Midhun TpPosted Aug 29, 2016, 6:00 AM