Convert Date into specific Format in UI path Studio X

Hello,

I need help on getting previous month start date i.e 1st day, in format MM/DD/YYYY i.e. for an example 04/01/2020 and also in format MMMM YYYY i.e. for an example April 2020

I am using Studio X.

For the first one, assign a String variable to Now.AddDays(-1 * (Now.Day - 1)).AddMonths(-1).ToString("MM/dd/yyyy").

For the second one, assign a String variable to Now.AddDays(-1 * (Now.Day - 1)).AddMonths(-1).ToString("MMMM yyyy").

1 Like

Hey,

I was about to shut down my laptop, but i seen your reply and thought let’s try, and guess what…It worked, Thanks a Lott!!!

I am new to UI Path, and I am really getting help on my queries from this Forum. Thank you!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.