Skip to main content

monthsstart - script and chart function

This function returns a value corresponding to a timestamp of the first millisecond of the n month period (starting from January 1st) containing date. The default output format will be the DateFormat set in the script.

Syntax:  

MonthsStart(n, date [, shift = 0 [, first_month_of_year = 1]])

Arguments:  





Argument Description
n An integer that must be (1), 2, (3), 4 or 6.
date The date to evaluate.
shift shift is an integer, where the value 0 indicates the period which contains date. Negative values in shift indicate preceding periods and positive values indicate succeeding periods.
first_month_of_year

If you want to work with (fiscal) years not starting in January, indicate a value between 2 and 12 in first_month_of_year.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!