Script functions reference > Script functions in alphabetical order > L > LotusNotesSetDateTime

LotusNotesSetDateTime
Syntax
LotusNotesSetDateTime(str_fieldname, str_date);
str_fieldname
str_date
Description
Sets the value of an item in a Note to the date and, optionally, the time specified. A Note must be available, i.e. opened with the LotusNotesAddNote or the LotusNotesFind function.
The date/time format depends on the format set on the Lotus Domino or Lotus Notes installation on the local system on which the StreamServer is running. Three formats are supported (HHMMSS is optional):
YYYYMMDD[HHMMSS] (recommended)
Returns
0
-1
Example
$ret = LotusNotesSetDateTime("created", "20001231101555");
OpenText StreamServe 5.6 Updated: 2013-03-01