4,075 pts.
 Date-Time values non return by the system to Domino ?
In an HelpDesk-HotlIne application developped in Lotus Script, i often use the time statement or the now() fonction to initialize date/time fields. It works most of the time but some time fields are not correctly initialized because these fonctions return nothing ! This problem occurs randomly. In the debugger, the result is empty ="". And the application's error is "Type Mismatch" or something like "Impossible to understand Date/Time value" It could happen as soon as the beginning of a session or sometimes after hours of normal use too .... Our server is a iSeries (AS400) in 5.0.11 and clients are in 5.0.2.c on W2K Any Idea ?

Software/Hardware used:
ASKED: May 11, 2005  3:19 AM
UPDATED: May 11, 2005  3:45 AM

Answer Wiki:
Hi, It depends on whether you need both the time and the date. For the date you can do this: Dim dateTime As NotesDateTime Set dateTime = New NotesDateTime( "Today" ) Messagebox( dateTime.LocalTime ) I could see a now() function in the doco but try this instead: Dim dateTime As New NotesDateTime( "" ) Call dateTime.SetNow Let me know how you get on. Oliver oliver.carr@gmail.com
Last Wiki Answer Submitted:  May 11, 2005  3:45 am  by  OliverCarr   0 pts.
All Answer Wiki Contributors:  OliverCarr   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _