1
votes

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

2

2 Answers

2
votes

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

0
votes

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.