How can I get the day of the week from a date in DS?

Follow

You can get it from "Format Date" in the "Assign Variable" and "Convert Variables" steps. Please refer to the procedure below.

 

Procedure

 1. Store the date in a variable.

 2. Add a "Convert Variables" step.

 3. Click the 「+」 button under the Action tab.

    1.png

 4. In "Form", enter the variable set in step 1.

 5. Select: 「+」 button → Date Handling → Format Date.

    2.png

 6. In "Locale", select a language from the drop-down menu.

 7. In "Format Pattern", enter "EEEE".

 8. Check whether the day of the week is displayed in "Test Output".

 9. Click OK.

    3.png

 10. In "To", specify the variable to store the day of the week in.

 11. Click OK.

   4.png

 

<Supplement>

・If you want to get today's day of the week, you can do so in one single "Assign Variable" step. (you can get the date or format it with "Converter")

7 out of 7 found this helpful

Comments

0 comments

Article is closed for comments.