Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Change date to days

Feras95p
8 - Asteroid

Dear all,

 

I have a file which has a column of date as shown in the attached file I want to add other column to know which day refer to each date.

 

Any help in that please?

 

Thanks in advance for your kind support. 

5 REPLIES 5
MarqueeCrew
20 - Arcturus
20 - Arcturus

@Feras95p,

 

I'm sorry, but I don't understand the request.  You've got a date of 2016-06-02.  What result value are you hoping to see?

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
RolandSchubert
16 - Nebula
16 - Nebula

Hi @Feras95p ,

 

if you need the weekday in a "long" form, you can use the formula
DateTimeFormat([Date], '%A')

This will return e.g. "Saturday" or "Monday".

The abbreviated form ("Mon", "Tue") will be the result of:

DateTimeFormat([Date], '%a')

while 

DateTimeFormat([Date], '%w') 

will retrurn a day number (0 for Sunday, 1 for Monday).

 

Hope this is helpful.

 

Best,

 

Roland

 

 

 

Feras95p
8 - Asteroid

The problem is that there is some missing data so the order of the days will be mixed up.

Feras95p
8 - Asteroid

I want to have output of which day is match every date for example the 2016-06-02 is Thursday.

MarqueeCrew
20 - Arcturus
20 - Arcturus

@Feras95p ,

 

As @RolandSchubert mentioned, the following formula will return the "day of the week":

 

DateTimeFormat([Date], '%A')

 

If you use a FORMULA tool and create a "vString" field, named "Day of Week" using that formula, you'll get the result that you asked for.

 

Cheers,

 

Mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels