cancel
Showing results for 
Search instead for 
Did you mean: 

Get name of month from today's date

vsuresh
New Contributor

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

4 REPLIES 4

vsuresh
New Contributor

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

dmiller
Former Employee

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.


Diane Miller

vsuresh
New Contributor

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!