How to get file count from folder for last month

Hello,

I am working on to get file count from folder received for last month. Can anyone help me on this. I have last month 1st day and last day code

First day : Now.AddDays(-1 * (Now.Day - 1)).AddMonths(-1).ToString(“MM/dd/yyyy”)
Last day : New datetime(now.Date.Year,
now.Date.Month,1).AddDays(-1).tostring(“MM/dd/yyyy”)

@Pramod_Mangale Do your file names have the date value in it ? If so, then can you provide some example file names that you have in the folder ?

No, I have list of files with .edi extension, as of now i am taking count manually by selecting date range

could you get it fixed? I am working on similar problem and would like to know how you solved it.

Could you please open up a new forum post ? We will look into it…