daynumberofquarter - script and chart function
This function calculates the day number of the quarter in which a timestamp falls.
Syntax:
DayNumberOfQuarter(timestamp[,start_month])
Return data type: integer
The function always uses years based on 366 days.
Arguments:
Argument | Description |
---|---|
timestamp | The date to evaluate. |
start_month | By specifying a start_month between 2 and 12 (1, if omitted), the beginning of the year may be moved forward to the first day of any month. For example, if you want to work with a fiscal year starting March 1, specify start_month = 3. |
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 – let us know how we can improve!