Lipi Reference
Lipi

Functions

dayofmonth()

The day of the month of a time you supply.

Syntax

                dayofmonth(series int time, series string timezone) → series int
              

Arguments

time required series int
timezone series string

Return Type

series int

Example


          //@lipi=2
indicator("Day of Month Example", overlay=true)
// Get current bar day of month
currentDay = dayofmonth(time)
// Plot day in Data Window
plot(currentDay, title="Current Day")