Search code examples
c#lotus-noteslotus-dominolotusscript

Lotus Notes & C#: Passing a Date value to a field


I am trying to program an Application that stores a date value (Date in Notes) in a Document.

How can i pass a "Date" value from my C# application to LotusNotes?


Solution

  • Create a NotesDateTime object, set value to now and assign to your field:

    NotesDateTime dateTime = session.createDateTime("");
    dateTime.SetNow();
    doc.replaceItemValue("TheDateField", dateTime);