Current Month & Year

Hi All,

How we can get the Current month and Year from the UiPath studio? Month should be complete name.

3 Likes

Hi! In order to get the month, use this: Now.ToString(“MMMM”)
And for the year, use this: Now.ToString(“yyyy”)

Thanks and regards,
Despi

7 Likes

@AmarKr
year =today.ToString(“yyyy”)
month =today.ToString(“MMMM”)

Thank you.

It’s working for me

1 Like

@rahatadi, Thank you

@AmarKr
No problem,
if you still have any query related uipath feel free to connect us :slight_smile:

Hi @AmarKr,
You may now mark the solution by clicking the check below my post. Thank you :slight_smile:

1 Like

Do we have some option to get the previous month name ?

@Jan_Brian_Despi, Do we have some option to get the previous month name ?

@AmarKr

today.AddMonths(-1).ToString(“MMMM”)

this will work :slight_smile:

2 Likes

This will work :slight_smile:

2 Likes

https://studio.uipath.com/docs/date-and-time-variables

thanks :slightly_smiling_face::slightly_smiling_face:

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