How to reverse string that acts as a date time