LOTUSSCRIPT/COM/OLE CLASSES


Examples: NotesDateTime class
1. This agent creates a NotesDateTime object that represents 4 March 2005 at 6:07:08 AM. The use of DateNumber and TimeNumber eliminates dependencies on regional settings.
2. This agent creates a NotesDateTime object that represents 4 March 2005 at 6:07:08 if the regional setting is appropriate, for example, M/d/yy h:mm:ss. When you set the date from a String, you must be sure that the regional settings of the user's computer are appropriate to the String value.
3. This agent creates a new DateTime object that represents today's date. The time component of the DateTime object is not set.
4. This agent creates a new DateTime object that represents the current date and time.
5. This agent gets the value of the PurgeDate item in a document and places it into a NotesDateTime object. The time zone setting of PurgeDate is preserved. For example, if PurgeDate has a value of 03/21/96 04:54:33 PM in Eastern Standard Time, the DateTime object represents 03/21/96 04:54:33 PM and its TimeZone property equals 5.
See Also