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.
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.
Use Modify Date activity designed for this.
Today’s date you can get by Now.ToString("MM/dd/yyyy")
Output:
Thanks,
Ashok
Hi @Baby123
Try this
FromDate:
DateTime.Today.AddDays(1 - DateTime.Today.Day).ToString("M/d/yyyy")
ToDate:
DateTime.Today.ToString("M/d/yyyy")
Regards,