Date form a csv file

Ah, indeed. You are doing String comparision the wrong way. This is a quirk of Java (and Processing) that is not obvious to a beginner at all. You can’t use == to compare two Strings. The correct way to compare two Strings is to use equals().

So the if statement becomes if(m.equals("01"))