English 中文(简体)
How to calculate the date difference between 2 dates using Lotus Notes
原标题:

How to calculate the date difference between 2 dates using Lotus Notes Fourmular

问题回答

If you are using lotusScript you can use either of these:

Returns the difference in seconds as a double

difference = notesdatetimeobj.TimeDifferenceDouble(othernotesdatetimeobj)

Returns the difference in seconds as a long

difference = notesdatetimeobj.TimeDifference(othernotesdatetimeobj)

If you are using @formulas you can just substract one date from the other and it will return the difference in seconds as well:

difference := date1 - date2;

Hope that helps.





相关问题
Calling Lotus Script Function From Lotus Formula

I need to call a lotus script function from Lotus Formula. The function returns a result. I do not just want to run a script which does not return any value. This is for Lotus Notes 7. Example ...

Open an attachment for editing and save changes made to it

My Lotus Notes document has a rich text item that stores an attachment. I want to edit the attachment and after this to save the attachment back to the Lotus Notes document. This is the script that ...

No of Years, Month and Days

I created Lotus Notes database for HR Department. I entered field Join date. Also entered field “Total Service Period”. I want get the calculated Number of Years, Month and Days of service in to “View”...

How to add a field from a 2nd form?

I m modifying an existing Lotus view to include a field from another form. I first appended a new column and set it to the desired field. However, after I refreshed, the new column was blank even ...

How do I select all documents manager

I m new to Lotus development and I need to create a view that shows where the user is manager of another database besides its own mail. Thanks in advance for any help.

热门标签