LOTUSSCRIPT/COM/OLE CLASSES


Converting between Domino Designer and LotusScript time
Example

The formats of a Domino Designer date-time item and a LotusScript date variant differ. For example, you cannot put a LotusScript date variant in a Domino Designer date-time item or manipulate a Domino Designer time-date item with LotusScript date functions.

The NotesDateTime class converts between formats by representing both formats as properties. For example, you can get the value of a Domino Designer date-time item by setting the LocalTime property, which is in Domino Designer format, and then manipulating the value with LotusScript functions by accessing the LSLocalTime property of the same object.

The following table lists the NotesDateTime properties:
PropertyData typeDescription
DateOnlyString(Read-only) Date part of Domino Designer date-time in local time
GMTTimeString(Read-only) Domino Designer date-time in Greenwich Mean Time
IsDSTBoolean(Read-only) True if the time is daylight-saving time
LocalTimeString(Read-write) Domino Designer date-time in local time
LSGMTTimeDate variant(Read-only) LotusScript date-time in Greenwich Mean Time
LSLocalTimeDate variant(Read-write) LotusScript date-time in local time
Parent NotesSession(Read-only) The session that contains a DateTime object. For COM only
TimeOnlyString(Read-only) Time part of Domino Designer date-time in local time
TimeZoneInteger(Read-only) Hours that must be added to the time to get Greenwich Mean Time
ZoneTimeString(Read-only) Domino Designer date-time adjusted for TimeZone and IsDST, which can be changed with ConvertToZone
The NotesDateRange class represents a range of dates. The following table lists the NotesDateRange properties. When you set a NotesDateRange object, either write to StartDate and EndDate, or Text, but not both. Values written to StartDate or EndDate are immediately transcribed to Text, and vice versa.
PropertyData typeDescription
EndDateTimeNotesDateTime(Read-write) Domino Designer date-time in local time
Parent NotesSession(Read-only) The session that contains a DateRange object For COM only.
StartDateTimeNotesDateTime(Read-write) The starting date-time of the range
TextString(Read-write) The range as two date-time strings separated by a hyphen

Example
See Also