TimeDiffMonths

Double TimeDiffMonths(DVar inDate1, DVar inDate2)

Description

Returns the total Months difference between the 2 dates entered, where the first date entered is the later date

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inDate1 DVar Date value 
inDate2 DVar Date Value

 

Return Type

Double

Example

In the place where you want to tick the start time you can use the following code:
 Vars["Start"]=Now;
This will capture the current time & date within a global variable that I called it 'Start' (Can call it whatever you like).
Then, in the place you want to capture the end time & date, you should use the following code:
Vars["End"]=Now;
*Note: These code lines would be best written within start\end scripts.
TimeDiffMonths(Vars["End"],Vars["Start"]);

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

1 comment
  • It seems I can't make it to work, here's is my project id bcb9cdda-7f3c-4c7d-bfe6-a1a8d88888c1 and the question index is 14 and 15

    0
    Comment actions Permalink

Please sign in to leave a comment.