Topics

03 Troubleshooting
Designer
Retrieving datetime values and dateranges using getItemValue

The getItemValue method in the LotusScript NotesDocument and Java Document classes returns the beginning and end date-times of a range as individual date-time values.

For example, if you have the range 1:00-10:00 in a DateTime field, Document.getItemValue will return 1:00;10:00 as separate date-time values, not as a range. In Java, use the getFirstItem method to get the DateTime item you want to manipulate, then use the getText property to get a plain text representation of the contents of the item. This will allow you to parse the contents of the field for individual date-time values and date-ranges. For LotusScript, use the GetFirstItem method and the Text property to achieve the same results.

Examples: