Hello all
i am trying not show the time into my label but did not work into asp.net side so how i can do it to just show the date via code behind
<asp:Label ID="NewDetDatPublbl" runat="server" Text='<%# Eval("Date", "{0:d MMM yyyy}") %>' ForeColor="#b2b2b2"></asp:Label>
protected void Page_Load(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(Request.QueryString["NewsT"].ToString()))
{
this.Page.Title = Request.QueryString["NewsT"].ToString();
}
SqlConnection NewsDetCon = new SqlConnection(cs);
{
NewsDetCon.Open();
SqlCommand NewsDetCM = new SqlCommand();
string NewsDetSQLSlect = @"SELECT Title, Descp, Date, PostedBy From News Where Title = ...
Go to the complete details ...