Skip to main content
Nintex Community Menu Bar
Answer

Extract Month from a date variable

  • August 26, 2020
  • 1 reply
  • 550 views

Forum|alt.badge.img+10

I need to extract the month from a variable. In my workflow, I have a set variable action that uses the executed date. I need to get the month from that. So if the workflow runs on 8/26/2020, I want the return to be August. I am sure that there is probably an easy way to do this with a regular expression but none of what I am using works. When I was on 2013, I simply did a build string formatting the date, but I don't think that formatting is an option in O365.

Best answer by aak1

I ended up just extracting the number of the month from the date by splitting the date and then using the get item from collection action to pull the first number. I didn't get August, but I did get 8 which works in my case.

1 reply

Forum|alt.badge.img+10
  • Author
  • Scholar
  • Answer
  • August 31, 2020

I ended up just extracting the number of the month from the date by splitting the date and then using the get item from collection action to pull the first number. I didn't get August, but I did get 8 which works in my case.