In Actionscript 3, dateUTC and monthUTC have different index ranges.
using the date of October 12th, 2015, UTC date variables in Date
var day:int = new Date().dateUTC
//trace = 12
var month:int = new Date().monthUTC
//trace = 9
The range for dateUTC
is 1-31.
The range of monthUTC
is 0-11
why does dateUTC start at 1 and monthUTC start at 0?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…