Proper date formatting in JSON