LOTUSSCRIPT/COM/OLE CLASSES
Examples: DateTimeValue property
1. This script uses the DateTimeValue property to place the value of the DateComposed item in a document into a NotesDateTime object. For example, if the DateComposed item contains the value 03/20/96, then the dateTime object represents the date March 20, 1996.
Dim item As NotesItem
Dim dateTime As NotesDateTime
Set item = doc.GetFirstItem( "DateComposed" )
Set dateTime = item.DateTimeValue
2. This script sets the value of the DateApproved item in a document to today's date. For example, if today is January 17, 1996 it sets the DateApproved item to 01/17/96.
Dim doc As NotesDocument
Dim item As NotesItem
Dim dateTime As NotesDateTime
'...set value of doc...
Set item = doc.GetFirstItem( "DateApproved" )
Set dateTime = New NotesDateTime( "Today" )
Set item.DateTimeValue = dateTime
Call doc.Save( False, True )
Véase también
DateTimeValue property
Glosario
¿Desea opinar sobre la Ayuda?
Ayuda sobre la Ayuda
Abrir la Ayuda en pantalla completa
Glosario
¿Desea opinar sobre la Ayuda?
Ayuda sobre la Ayuda
Abrir la Ayuda en pantalla completa