Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Change listed date to first of month

tiverson
8 - Asteroid
 

I have data summarized by a posting date.

I want to create a new column that will change the posting date to the first day of that period

 

Posting date     New date

2023-06-28       2023-06-01

2021-12-20       2021-12-01

2023-08-17       2023-08-01

2023-08-25       2023-08-01

 

Currently the data in my file is a Date data type.

 

 

2 REPLIES 2
binuacs
21 - Polaris

@tiverson @Use the date function DateTimeTrim() function

 

toDate(DateTimeTrim([post date],'firstofmonth'))

 

image.png

 

ChrisTX
16 - Nebula
16 - Nebula

DateTimeTrim([Posting date], "firstofmonth")

 

List of all Functions: https://help.alteryx.com/current/en/designer/functions.html

 

Chris

Labels
Top Solution Authors