Get day of the week from Date in NWC?

  • 5 November 2018
  • 5 replies
  • 3 views

Badge +3

I'd like to be able to determine the day of the week from a date in NWC. Is this possible?

The Format date to string action doesn't offer ddd. 

Is it possible to use options listed here: Date and Time Format Strings - Quick Reference Guide I have no where to use a "fn-FormatDate" in NWC.

Thanks. 


5 replies

Badge +3

This community needs more contributors. happy.png  

Userlevel 6
Badge +15

Joshua Tan‌ any thoughts on this one? Unsure who else I can tag here. Bingham Blalock‌??

Userlevel 3
Badge +5

Hey Rhia Wieclawek‌, we've seen this request on Uservoice and added it to our backlog. happy.png

Badge +9

Hi Michael, 

If you have the ability to add Xtensions in your NWC tenant, I built an Xtension that will get you the day of the week from the Date value you pass through. I have the Xtenstion available here: xtensions/dayWithDate.json at master · slfiene/xtensions · GitHub 

Pass the date value through 'Body Date', the Language (which I only have 'en-US' working), and store the result in a string variable to use later in the workflow.

221493_pastedImage_3.png

Thank you,

Sean

Badge +3

Just tested this, and it works great. Thank you! 

Log to instance details

I appreciate it.  

Reply