fix label on dates if HTML5 compatibility is explicitly enbled
Merge pull request #1183 from ericsullivan/fix_html5_date_label

fix label on dates if HTML5 compatibility is explicitly enbled