SOLVED
Help require on string Month
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
alt_tush
9 - Comet
‎02-10-2021
11:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I have a below string column month with data
Month
Jan
Feb
Mar
I need expected output like month number for ex. for jan 1, feb 2 etc.
Expected output
Month Month_No.
Jan 1
Feb 2
Mar 3
Please help
Thank you in advance.
Solved! Go to Solution.
Labels:
- Labels:
- API
- Apps
- Batch Macro
- Best Practices
- Developer
- Workflow
2 REPLIES 2
15 - Aurora
‎02-10-2021
11:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
AngelosPachis
16 - Nebula
‎02-11-2021
12:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @alt_tush ,
Another way to do it apart from the one suggested by @messi007 is to use the formula
DatetimeMonth(DateTimeParse([Month],"%B"))
The DatetimeParse([Month],"%B") is going to convert Jan, Feb, Mar to a date correctly formatted (yyyy-mm-dd) and the datetimemonth function will return you a numeric value for that month
Regards,
Angelos
