add formatData to format datetime to "json like"