I have a return result like this: o is :
dates [Object { date=12, day=4, hours=0, more...}]
JSONObject o=somefunction();
response.getWriter().write(o.toString());
and this response like [object Object]
but i need to this date format like "dd/mm/yyyy" format.
How i convert this value?
JSON has no notion of dates. The best way is either use the unix timestamp oder ISO datetime. Nothing else, nothing custom.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.