Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 516.5k

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)