Format datetime

Hello, :slight_smile:
How to make the date format “January 2023” (I need the name of the previous month)?

hi @dvojinovic ,
Use below Code

Now.AddMonths(-1).ToString("MMMM yyyy")

For more about datetime refer below link

All about Datetime - UiPath - News / Tutorials - UiPath Community Forum


now.AddMonths(-1).toString(“MMMM yyyy”)

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