Date-Time values non return by the system to Domino ?

4,110 pts.
Tags:
Development
Lotus 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 ?
ASKED: May 11, 2005  3:19 AM
UPDATED: May 11, 2005  3:45 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following