6
Answers

Get No Of Days

Ramco Ramco

Ramco Ramco

1y
558
1

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)