Skip to main content

NotesDateTime

Properties

NameDescription
DateOnlyRead-only. A string representing the date part of a date-time, in the local time zone.
GMTTimeRead-only. A string representing a date-time, converted to Greenwich Mean Time (timezone 0).
IsDST (NotesDateTime)Read-only. Indicates whether the time reflects daylight-saving time.
IsValidDateRead-only. Indicates whether the string that is used to create the NotesDateTime object is valid.
LocalTimeRead-write. A string representing a date-time, in the local time zone.
LSGMTTimeRead-only. A LotusScript® variant representing a date-time, converted to Greenwich Mean Time (timezone 0).
LSLocalTimeRead-write. A LotusScript® variant representing a date-time, in the local time zone.
Parent (NotesDateTime)Read-only. The session that contains a DateTime object.
TimeOnlyRead-only. A string representing the time part of a date-time, in the local time zone.
TimeZone (NotesDateTime)Read-only. An integer representing the time zone of a date-time. In many cases, but not all, this integer indicates the number of hours which must be…
ZoneTimeRead-only. A string representation of the time adjusted for the TimeZone and IsDST properties.

Methods

NameDescription
AdjustDayIncrements a date-time by the number of days you specify.
AdjustHourIncrements a date-time by the number of hours you specify.
AdjustMinuteIncrements a date-time by the number of minutes you specify.
AdjustMonthIncrements a date-time by the number of months you specify.
AdjustSecondIncrements a date-time by the number of seconds you specify.
AdjustYearIncrements a date-time by the number of years you specify.
ConvertToZoneChanges the TimeZone and IsDST properties as specified.
SetAnyDateSets the date component to a wildcard value, which means that it matches any date. The time component is unaffected.
SetAnyTimeSets the time component to a wildcard value, which means that it matches any time. The date component is unaffected.
SetNowSets the value of a date-time to now (today's date and current time).
TimeDifferenceFinds the difference in seconds between one date-time and another.
TimeDifferenceDoubleFinds the difference in seconds between one date-time and another.

Examples

NameDescription
Examples: DateOnly propertyThis script displays the current date and time on two lines.
Examples: GMTTime property1. This script displays the value of the GMTTime property.
Examples: IsDST propertyThis script creates a NotesDateTime object, sets it to today's date and time, and checks whether daylight-saving time is currently in effect or not.
Examples: LocalTime property1. This script displays the value of the LSLocalTime property, which equals "04/16/96 05:36:00 PM," regardless of the computer's time zone setting.
Examples: Parent property (NotesDateTime)This Visual Basic code displays the parent user name of a NotesDateTime object.