bittersweetryan/ColdFusion-Koans — Issue #13: AboutDates confusing testAddingToDate
Author: jtreher
Created: 2011-12-12 18:07:13+00:00
State: open

##AboutDates confusing testAddingToDate

Is the 'y' day of year datepart really supposed to be here? If these are basic teaching examples, this seems unusual in comparison to the other functions.

public void function testAddingToDate(){
var myDate = NOW();

myDate = dateAdd("y",7,myDate);

assertEquals(dateFormat(myDate,"mm/dd/yyyy"),"12/12/2018");
}