Fixed generate reporting when no collection was defined. Fixed parsing of dates.