Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

TrimRight with wild card?

mgirdwood
6 - Meteoroid

Hi everyone

 

I am trying to use trimright to remove a specific number characters;

 

TrimRight([Ten-Minute Timeline],":*0:00")  where the fifth character from the right needs to be a wild card to catch the minutes.  When i run it it strips the last  4 characters but leaves behind the number of minutes.  Is there a way to set this  ?

 

Input

2023-03-01 09:40:00
2023-03-01 08:10:00
2023-03-01 08:20:00
2023-03-01 07:50:00

 

2023-03-01 09
2023-03-01 08
2023-03-01 08
2023-03-01 07

 

Thanks

Mark

3 REPLIES 3
ShankerV
17 - Castor

Hi @mgirdwood 

 

One way of doing this.

 

ShankerV_0-1678709547989.png

 

binuacs
21 - Polaris

@mgirdwood Basically the data is in DateTime format, if you want to only date part just update the dataType to Date

 

binuacs_0-1678709889937.png

 

Christina_H
14 - Magnetar

You could keep it in DateTime format by using DateTimeTrim([Input],"hour")

Christina_H_0-1678710015208.png

 

Labels
Top Solution Authors