Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 521.4k

Datetime with Eval

May 13 2022 3:47 PM

Hi

  I want to convert date to below format with Eval

htmlTable.Append("<td>" + Convert.ToDateTime(colum.PayDate).ToString("dd-MM-yyyy") + "</td>");

 

<asp:Literal ID="ltrlPaymentDate" runat="server" Text='<%# Eval("PaymentDate") %>'></asp:Literal></td>

Thanks


Answers (1)