Refactored date to day,month and year

This is done to make the querying easy from dropbox api