03-08-2021 12:20 PM
This may have been asked before, but I can’t find a solution. I need to extract the weekday name from the current date. In other words, today is March 8. I need ‘Monday’. Date.now().getDay() returns the number 1.
Solved! Go to Solution.
03-08-2021 12:41 PM
Try this: Date.now().toLocaleDateString( { ‘format’ : ‘EEEE’ })
03-08-2021 12:41 PM
Try this: Date.now().toLocaleDateString( { ‘format’ : ‘EEEE’ })
03-08-2021 12:57 PM
That works! I never would have thought of that. (I’m a complete SnapLogic newbie). One more question, do you know of a way to make it all uppercase? Thank you very much!
03-08-2021 01:13 PM
Date.now().toLocaleDateString( { ‘format’ : ‘EEEE’ } ).toUpperCase()
🙂
03-08-2021 01:14 PM
You’re awesome. Thank you