SOLVED
Convert string to Date Jan-50 to see it as 1950-01-01
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
Marta12
7 - Meteor
‎02-24-2021
04:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
I try to use DateTime tool but when I use "Mon-yy" it reading Jan-50 as 2050-01-01 and I'm expecting 1950. This issue disappear reaching date Jan-55 --> 1955-01-01. Do you know how to repair it?
Solved! Go to Solution.
Labels:
- Labels:
- Topic of Interest
3 REPLIES 3
mot
11 - Bolide
‎02-24-2021
05:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Marta12,
I would suggest to add "19" to the string first before converting:
This way, you can ensure that the dates are in 1900s. See the workflow attached. You can then convert using datetime. I hope this helps. Best!
‎02-24-2021
07:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks, but my data also contain more recent data till 2021. This formula won't work with more recent date.
mot
11 - Bolide
‎02-24-2021
07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Marta12,
In that case, you can add an if statement to determine if Jan-10 is in 20xx or 19xx. I have added this logic to the workflow. I hope this helps. Best.
