In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more 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

 

binu_acs
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