Update directives.js

getYear() + 1900 is the same that getFullYear(), is simpler, and it is crossbrowser save.
Merge pull request #23 from tellezhector/master

Update directives.js