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:
Property |
Data type |
Description |
---|---|---|
String |
(Read-only) Date part of Domino Designer date-time in local time |
|
String |
(Read-only) Domino Designer date-time in Greenwich Mean Time |
|
IsDST |
Boolean |
(Read-only) True if the time is daylight-saving time |
String |
(Read-write) Domino Designer date-time in local time |
|
Date variant |
(Read-only) LotusScript date-time in Greenwich Mean Time |
|
Date variant |
(Read-write) LotusScript date-time in local time |
|
NotesSession |
(Read-only) The session that contains a DateTime object. For COM only |
|
String |
(Read-only) Time part of Domino Designer date-time in local time |
|
Integer |
(Read-only) Hours that must be added to the time to get Greenwich Mean Time |
|
String |
(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.
Property |
Data type |
Description |
---|---|---|
NotesDateTime |
(Read-write) Domino Designer date-time in local time |
|
NotesSession |
(Read-only) The session that contains a DateRange object For COM only. |
|
NotesDateTime |
(Read-write) The starting date-time of the range |
|
String |
(Read-write) The range as two date-time strings separated by a hyphen |