Ramco Ramco

Ramco Ramco

  • 1.4k
  • 692
  • 41k

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)