Learning Documentation Community Open Exchange Global Masters Certification Partner Directory Ideas Portal
Developer Community
  • Posts
    • InterSystems Official
    • Articles
    • Questions
    • Announcements
    • Discussions
    • Tags
  • Events
    • Tech Article Contest
    • Programming Contest
    • InterSystems Ideas Contest
    • Event Calendar
  • Products
    • InterSystems IRIS
    • InterSystems IRIS for Health
    • HealthShare
    • TrakCare
    • Caché
    • Ensemble
    • InterSystems Analytics (DeepSee)
    • InterSystems Text Analytics (iKnow)
  • Jobs
    • Job Opportunity
    • Job Wanted
  • Members
  • About
    • About Us
    • FAQ
    • Feedback
    • Report an Issue
    • Share an Idea
    • Code of Conduct
    • Contact Us

EN

Search by posts, members, tags
Language
EN|
ESPTJPCNFREN
New post
  • Profile page
  • Posts (0)
  • Replies (1)
  • Mentions (0)
  • Official certification & Credly badges (0)
  • Global Masters badges (0)
  • Followers (0)
  • Following (1)
AllAccepted answers
    go to post
Satya Prasad Kalam · Feb 6, 2022

Here is the custom class for this...

You should add this in one of your custom class which Extends Ens.Rule.FunctionSet so that it is visible in Routing Rule. 

ClassMethod DaysFromToday(pDate As %String) As %Integer
{
    Set tNow = $H+0
    Return $ZDATEH($EXTRACT(pDate,1,8),8) - tNow
}

I got this from Jeffrey Drumm. 

1 0 https://dev.community.intersystems.com/post/date-difference#comment-180601
Satya Prasad Kalam
@SatyaPrasad.Kalam
Follow

User statistics

Posts
0
Replies
1
Likes
1
Applications
0
Badges
0
Followers
0
People reached
0
Accepted answers
0
  • Privacy & Terms
  • Guarantee
  • Section 508
  • Contest Terms
  • Cookies Settings
© 2025 InterSystems Corporation, Cambridge, MA. All rights reserved.

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up

Log in or sign up

Log in or create a new account to continue

Log inSign up