Relative date formatting pull request

Here's the change. Please let me know if you find any problems with it or if I forgot to make necessary changes.