Date validity check added.
Merge remote-tracking branch 'origin/master'