Use json for date formatting