Comparing Two Date columns
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Folks,
In My Data I have 2 columns for Date
Date format is different for both Dates
1. date of birthdate = 22-Aug-21
2. Date of upcoming birthday = 2022-08-22
I would like to check if 'Date of upcoming birthday' is exactly one year after 'date of birthdate'
Can anyone guide currently we need a logic as we are using a formula tool to accomplish this but needs a help
Thank you in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@kushalb
I checked the DateTimeDiff will not work for this case, since I think it gets rounded.
This is a work around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@kushalb Another way is you can extract the year part of your data and then check if difference is 1. here is the workflow to achieve this.
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@binuacs
The Leap Year has 366 days, 😂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@Qiu I realized that later and updated the workflow to compare the dates after adding 2 to the birthday year. Thanks for letting me know 😀
