+1 888 340 6572

IncMonth: Difference between revisions

From MultiCharts
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138)
No edit summary
 
Line 1: Line 1:
Returns a numerical value corresponding to a Julian date that is after or before the specified Julian date by a specified number of calendar months.  
Returns a numerical value corresponding to a Julian date that is after or before the specified Julian date by a specified number of calendar months.  
Julian Date indicates the number of days that have elapsed since January 1st, 1900.
   
   
==== Usage ====
==== Usage ====

Latest revision as of 14:01, 15 February 2023

Returns a numerical value corresponding to a Julian date that is after or before the specified Julian date by a specified number of calendar months.

Usage

IncMonth(JulianDate,M)

Where: JulianDate - a numerical expression specifying the Julian Date

M - a numerical expression specifying the number of calendar months from the specified Julian date; if the value of M is positive, a date after the specified date will be returned; if the value of M is negative, a date before the specified date will be returned

Example

IncMonth(39417,1) will return a value of 39448, corresponding to January 1st, 2008, one calendar 
month after the specified date of December 1st, 2007 

IncMonth(36252,-2) will return a value of 36193, corresponding to February 2nd, 1999, two calendar
months before the specified date of April 2nd, 1999