Added functions to format JSON date strings