Skip to Main Content
HCL Domino Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

It is determined whether the date and time is the date and time of the specified range.

I would like a method to use the NotesDateRange class to find out if a date is in range

 

For example, the following method

isWithinRangeDays( targetDate:Variant, rangeDate:NotesDateRange ) : boolean

 

targetDate -> 01/30/2019

rangeDate -> 01/01/2019 - 01/31/2019

Result : true

 

targetDate -> 02/01/2019

rangeDate -> 01/01/2019 - 01/31/2019

Result : false

 

I am glad if it is implemented not only in LotusScript but also in SSJS.

  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      Mar 27, 2022

      Suggestion:

      range.Contains(dt)

      where dt is a Variant or NotesDateTime., dt could even be a NotesDateRange, to see if both ranges overlap.

    • Guest
      Reply
      |
      Jan 30, 2019

      Yes please :D

      That is one common "library" that I can (hopefully) cross off from my list

      Tinus Riyanto - Prisma Global Solusi