How to select first day in calender of every month

I need to select the start date and end date from the calender.
start date should be first day in a curent month and end date should two prior business days to present date(DD/MM/YYYY)
ex: Today is 24/09/2018, So start date would be 01/09/2018 and end date would be 22/09/2018.

My requirement is this has to run on every day please help me on how to select first day in month and end date two prior days to present date.

Hi @sambana_karunakar

You have to Try Start Date of the Current Month

BeginDate = new DateTime(now.Year,now.Month,1)

and the End Date

End Date = now.AddDays(-1).ToString

Best Regards
Farhan

3 Likes

Hi
Please follow below tutorial

1 Like