I have scheduled agent which calculates the turnaround between the two dates.I am getting the MgrDt field value from the document by using the doc.MgrDt(0) code in the agent. In some of the documents it is returning only date. But if we see the field value in client it contains both date and time values. this is happening only for a few documents. For the remaining documents both are coming. I couldn’t get why this is heppening. Please help me out from this.
Subject: Getting only date eventhough the field contains date and time.
You can try something like that:
Dim dt As New NotesDateTime(doc.MgrDt(0))
Call dt.SetAnyTime
Msgbox dt.LSLocalTime
Konrad