Legend before date fix

When its date input type rendered there is legend shown instead of label, this will fix issue
Merge pull request #665 from PayteR/patch-3

Legend before date fix