hdc
hdc

Reputation: 161

Replaceitemvalue & date field & lotusscript

I am using following code to create a new notes datetime item on the document.

Call doc.replaceitemvalue("dttimefield", format(cdat("11/11/2011"),"d/mm/yyyy"));

It does the work but when I open the document and see the documemnt properties it shows me as text list and having value as "11/11/2011"

Please help me what is wrong here. I want that as date time field not text list.

Thanks

Upvotes: 1

Views: 2103

Answers (2)

nongkook
nongkook

Reputation: 41

enter image description here

Is it error with ";" or it's Java?

I try with your code and it's get a date/time type.

Upvotes: 0

Per Henrik Lausten
Per Henrik Lausten

Reputation: 21709

You need to create a NotesDateTime variable with the expected date and then use that variable as input to the replaceItemValue method.

Upvotes: 2

Related Questions