Fixed bug with iterationdate.  Better abstraction of date