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 The time to read. Required.
timezone series string The timezone to read it in. Required.

Return Type

series int

Example


          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")