Write DateFormat attribute to json