Skip to main content
Nintex Community Menu Bar
Solved

Extract Month from a date variable

  • August 26, 2020
  • 1 reply
  • 497 views
  • Translate

Forum|alt.badge.img+10
  • Scholar
  • 61 replies

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.

View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+10
  • Author
  • Scholar
  • 61 replies
  • 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.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings