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

Remove Special Characters from a field without using Data Cleansing

Gandalf_NotGrey
8 - Asteroid

Hello,

I have a timestamp field which looks like this 2024-07-10 13:36:55

I need to remove the colon ":" from this field and keep everything else as it is.

The output should be like 2024-07-10 133655.

I tried this in the formula tool but could not do it.

Can someone please help me out with this.

Thanks so much.

4 REPLIES 4
ShankerV
17 - Castor

Hi @Gandalf_NotGrey 

 

This can be achieved with the help for Formula tool.

 

Replace([Timestamp], ":", "")

 

Note: The timestamp column might be in datatype date or datetime.

When using the formula tool, save the output in the different column name with datatype as VWstring

 

Many thanks

Shanker V

Qiu
21 - Polaris
21 - Polaris

@Gandalf_NotGrey 
Can you tell us which function you are using?

flying008
15 - Aurora

Hi, @Gandalf_NotGrey 

 

In new field, use the formula:

Replace(ToString([TimeStamp]), ':', '')

 

Gandalf_NotGrey
8 - Asteroid

Thanks @ShankerV  @Qiu  @flying008  - This is working now. Thanks so much for your help.

Labels
Top Solution Authors