Mail date to JSON