How to extract year and month from date
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
christian_kamaie
5 - Atom
‎03-26-2023
12:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to extract year and month from date
Labels:
- Labels:
- Topic of Interest
5 REPLIES 5
martinding
13 - Pulsar
‎03-26-2023
10:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @christian_kamaie ,
There are many ways to achieve this, the easiest is to make use of the DATETIMEYEAR(), and DATETIMEMONTH() functions.
You can also use DATETIMEFORMAT().
VijayAtMac
5 - Atom
‎10-12-2023
09:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
DateTimeFormat function can also be used from formula tool
.
grazitti_sapna
17 - Castor
‎11-16-2023
11:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @christian_kamaie
I Have made a workflow for use case .
Hope it works for you. Kindly Check.
Thanks & Regards
Sapna Gupta
GlenR
5 - Atom
‎05-14-2024
09:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Thank you for this response it has worked for me. Does alteryx have YYYY-mmm function e.g 2024-Mar.
redah
5 - Atom
‎06-06-2024
04:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Glen,
Try DateTimeFormat([calendar_date], '%Y-%b'). See attached.
