prevent zero days and months in emissions test dates.
added main statements