On the form there is a certain <asp:Literal> in which the date is, how to set a specific format for this literal? I try this, it does not work:
Literal2.Text = string.Format("{0:d}", Literal2); I register this line in the Page_Load () method.
On the form there is a certain <asp:Literal> in which the date is, how to set a specific format for this literal? I try this, it does not work:
Literal2.Text = string.Format("{0:d}", Literal2); I register this line in the Page_Load () method.
Source: https://ru.stackoverflow.com/questions/506541/
All Articles