Allow specifying dateformat
Re-use getDate method
Merge pull request #8 from okaymak/master

Allow specifying dateformat