Fixes and improvements to as.Date functionality.
Merge branch 'brandon-fixes'

* brandon-fixes:
  Fixes and improvements to as.Date functionality.