Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 527.7k

Get No Of Days

Jun 16 2023 1:33 PM

Hi

  In below code i want if Next Action Date is not null or '' & Next ActionDate <= Current Date then No Of Days should be calculated

<asp:Literal ID="ltrlDays" runat="server" Text='<%# (DateTime.Now - Convert.ToDateTime(Eval("NextActionDate"))).Duration().Days %>'></asp:Literal>

Thanks


Answers (6)