Putting dates into a format that works with more browsers