Notesdatetime in web

Hi

my code is

dim dateTime as new notesdatetime(“Today”)

call dateTime.setnow

call doc.replaceitemvalue(“ApprovedDate”,dateTime)

this code is not working in web. Field itself is not creating.

I’ve tried with…doc.ApprovedDate=Today adn doc.ApprvedDate=cdat(dateTime). But all trials are failed.

can any one help me

Thanks,

G Pradeep kumar

Subject: notesdatetime in web

A few things…

  1. Explain more of where you have your code and what you’d like to happen. That will help us help you.

  2. LotusScript does not work on the web. LotusScript runs in the Notes Client and on the Server. If you code is in a button, you’ll need to either use JavaScript to assign the value or convert the LS in the button to an agent.

  3. If you want a Date Picker or Date validation, you must use JavaScript on the web page. There are many sources on the web, use your favorite web search tool.