Converts a Javascript Date object to readable strings with PHP like formats