ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

How to trim year

haroon_sa
ファイアボール

i'm unable to trim year from the date.

i'm having  1994-02-24

but i need this 1994(year alone) using formula tool.

 which formula should i use to get this output.

5件の返信5
LordNeilLord
オーロラ

Hi @haroon_sa

 

Try DateTimeFormat([Your_Date_Field], "%Y")

 

@LordNeilLord

Part time Tableau, Part Time Alteryx. Full Time Awesome

 

 

 

BenMoss
ACE Emeritus
ACE Emeritus

You could also try left([date],4)

 

Ben

haroon_sa
ファイアボール

No it's not working..... Any other idea

haroon_sa
ファイアボール

Thanks @LordNeilLord 

I got it

LordNeilLord
オーロラ

@haroon_sa

 

This is a really good resource for DateTime Functions in Alteryx:

 

https://help.alteryx.com/9.5/Reference/DateTimeFunctions.htm

ラベル
トップのソリューション投稿者