Skip to content

Conversation

@koratalas
Copy link
Contributor

This is a new feature that is introduced to find the difference between two dates provided by the user. This is most commonly used by the developers while sending out the notifications to show that the ticket is open since "x" no. of days, etc.

So, the functionality of this feature is pretty simple, straight forward and is as follows:

  1. user provides the start and end dates to the action.
  2. action takes dates converts them to numeric values and then checks if the end date is greater than start date or not, if end date is less than start date then it throws error: "End date is less than start date, please validate.".
  3. if end date is greater than start date then it will calculate the difference and sends it to the output.

Example scenarios:

  1. Leave requests to show the managers, how many days is the leave being applied for.
  2. User onboarding notifications, etc.

@github-actions
Copy link

github-actions bot commented Oct 4, 2025

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@am-shakeel am-shakeel self-assigned this Oct 4, 2025
Copy link
Contributor

@am-shakeel am-shakeel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@am-shakeel am-shakeel merged commit f9eb85f into ServiceNowDevProgram:main Oct 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants