Manage Learn to apply best practices and optimize your operations.

Date array

create a list of dates, based on a begin date and an end date

When you need to create a list of dates, based on a begin date and an end date. This is extremely useful when creating calendar views, allowing you to display activities that extend over a single day.

Requirements - three fields:

Place the code in the query save event, and when the document is saved it will populate the DateArray field with a list of dates.

 Dim session As New NotesSession Dim db As NotesDatabase Dim workspace As New NotesUIWorkspace Dim currentdoc As NotesDocument Dim uidoc As NotesUIDocument Dim doc As NotesDocument Set db=session.CurrentDatabase Set uidoc=workspace.currentdocument Set doc = uidoc.document If doc.BeginDate(0) = doc.EndDate(0) Then doc.DateArray = doc.BeginDate(0) Else result = doc.BeginDate(0) & | - | & doc.EndDate(0) result2 = Evaluate(|@Explode(@TextToTime("| & result & |"))|) doc.DateArray=result2 End If Call doc.Save(True, False)

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...