I have label which displays date time from database as
string due1 = myreader.GetDateTime(20).ToString("yyyy-MM-dd");
label26.Text = due1;
i want it to be displaye as dd-mm-yyyy on the label
or like 12-aug-2013.
Try
string due1 = myreader.GetDateTime(20).ToString("dd-MMM-yyyy");
Hi arjun singh
You need to convert your string in date time like
DateTime dueDate = Convert.ToDateTime(label25.Text);
and pass this value to data base
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.