Reputation: 161
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
Reputation: 41
Is it error with ";" or it's Java?
I try with your code and it's get a date/time type.
Upvotes: 0
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