Extracts the month value from a date/time object.
month(date)
→ returns numeric
date.month()
dt = createdatetime(2016,1,1,5,30,25);
m = month( dt );
writeoutput( m );
Expected Result: 1
Returns the month from a datetime object
createDate( 2022, 10, 1 ).month();
Expected Result: 10
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.