Get name of month from today's date

Hello,

I’m trying to get the name of the month from the date. Eg. today’s date is 10/23/2019, I want to get the month name October.

Can someone please give me the expression language syntax for this.

Thanks

Date.now().toLocaleDateString({“format”:“MMMM”})

https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439344/Date+Functions+and+Properties#DateFunctionsandProperties-toLocaleDateString

https://www.joda.org/joda-time/apidocs/org/joda/time/format/DateTimeFormat.html

Thank you for your reply. I get this error message:

Could not compile expression: Date.now().toLocaleDateString( … (Reason: Invalid token: ‘“’ for expression: Date.now().toLocaleDateString( …; Resolution: Please check expression syntax)
Thanks

That’s an issue with copy and pasting from the Community. Replace the quotation marks after you paste it into SnapLogic so that you get straight quotation marks instead for the angled ones.

Thank you both very much. It worked! You are right the copy -paste messed up the quotation marks.

Appreciate the help from both of you!