getUTCMonth function
- Arguments
- 0
- Return values (number)
- A number ((0–11), representing the month.
- Syntax
dateObj.getUTCMonth()
- Examples
-
Example Result This script is added, as a custom script on an action, to any element with a Label property, such as a button. var d = new Date(); this.Label = d.getUTCMonth();Assuming the current month, UTC time, is February: Returns "1" on the element's label. With Text3 on a display, this script is added as a custom script to a Text3 action.s var today = new Date(); var month = today.getUTCMonth(); Dsp.Text3.Label = monthAssuming the current month, UTC time, is November: Returns "12" on Text3's label.