Question
get current year
Anyone created a function to get the current year? Here's
what I've got so far and it appears to work:
function getCurrentYear() {
var datetime = now();
var month = year(datetime);
return Year(datetime);
}
Is there a better way to code such a function in cfml?
function getCurrentYear() {
var datetime = now();
var month = year(datetime);
return Year(datetime);
}
Is there a better way to code such a function in cfml?
