I just ran the following, and it confirms that all is well in this part of the code (meaning it prints "true").
Where are you seeing the "2007"? Some programs -like Excel- format CSV data upon import, thereby turning 2-digit years into 4-digit years, so that would not be a valid
test.