Problem with Date/Time field

I have a Date/Time field in a form which upon saving i’m updating with @now value. the first time i save the document, it works fine… that is the date and time are written to the field. but when i open and save the same document again, the time value vanishes mysteriously.

this i observed happens every other time i open the document in edit mode and save.

is this a bug in lotus notes? if so what could be the solution for it?

Subject: Problem with Date/Time field

Hi

Well check whether the field is computed one and check have u checked time property in a field.

Subject: Problem with Date/Time field

Hi

Where are you setting the field with value @now.

Is it defalut formula.

are save button.

are query save.

Can you write about how are you excuting.

Subject: RE: Problem with Date/Time field

thanks for responding guys. actually it has more to it than it actually appears. it’s not the programming fault. after much research I found out that it is indeed a lotus notes bug. and to support this fact I have read articles posted by experts (such as in dominopower.com) on aspects not only with the time part but with the complete notes date/time field. But ofcourse I wouldn’t like to divert you from the topic by explaining all these facts at present.

one of the simpler solutions to my problem which I will explain in the language which we understand so well… yes, the lotus notes language:) :

@TextToTime(@Text(@Date()+ " " + @Time(@Now))

by now it must have struck you like a thunder bolt. but anyways for those who didn’t get it it’s like this. first you get the date portion of date/time field in text, append the present time and re-form the date/time value from the text.

also be very careful when you modify a designer date/time value in lotusscript as both of them have different storage formats and tend to be incompatible. the best way is to create another date/time field in lotusscript through NotesDateTime class.

thanks for your time. happy coding.

-Shiva.