From a date/time object, gets the year value.
year(date)
→ returns numeric
date.year()
dt = createdatetime(2016,1,1,5,30,25);
y = year( dt );
writeoutput( y );
Expected Result: 2016
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.