Fixed bugs relating to the date format, valid value length, and a bug in autodisplay.