Cleaned genDate function
Merge branch 'master' of github.com:nreijmersdal/jdg