How to get 1st of the current month and till date of the month

Hi Team,

I want 2 dates like 1st of the current month and today’s date.(Mm/dd/yyyy)

Ex: Month is Apr.

From date: 4/1/2024
Todate : 4/25/2024.

When we run the in Jan month the dates will be

1/1/2024 And 1/25/2024.

Kindly suggest.

@Baby123,

Use Modify Date activity designed for this.

Today’s date you can get by Now.ToString("MM/dd/yyyy")

Output:
image

Thanks,
Ashok :slight_smile:

Hi @Baby123

Try this

FromDate:
DateTime.Today.AddDays(1 - DateTime.Today.Day).ToString("M/d/yyyy")

ToDate:
DateTime.Today.ToString("M/d/yyyy")

image

Regards,