There is a column called Due_Date From this column i need to get the previous two month data.
Date Format:01-10-2019
using select query trying to get data But here the problem is if I am selecting Due_Date Greater than Previous two months,Getting all Months Data After August.
Include one more condition like this
duebookHeaderDT.Select(β[Channel]=βCANβ AND [Actual Due Date] >ββ+previousMonth+βββ AND [Actual Due Date] <ββ+Now.AddDays(-(Convert.ToInt32(Datetime.Now.ToString(βddβ)))).ToString(βdd/MM/yyyy)+βββ).CopyToDataTable()