Calculates the quarter of the year in which a date falls.
quarter(date)
→ returns numeric
date.quarter()
dt = createdatetime(2016,1,1,5,30,25);
q = quarter( dt );
writeoutput( q );
Expected Result: 1
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.