Date Logic

Hi All,

I have to put a filter on my report : The conditions are as below.

System.Globalization.CultureInfo.InvariantCulture)) <= Now.AddDays(-15)

I need to check prior to or within fifteen days from sign date.

Suppose sign date is 05-09-2024 and Start date is 25-09-2024 . I need to check whether the start date of that order is prior to or within 15 days from sign date

System.Globalization.CultureInfo.InvariantCulture)) <= Now.AddDays(-15)

Dear @dutta.marina,

This can be done by using timespan method in C#.

  1. var_SignDate: Convert.ToDateTime(“2024-09-05”)
  2. var_TimeDelta: DateTime.Now.Subtract(SignDate)
  3. If condition as follows:
    Convert.ToInt32(TimeDelta.Days.ToString()) >=15
    Then you can process the transaction

Hope this helps :slight_smile:

Br,
NikZ

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.