Closed akkigeekdev closed 5 years ago
I sending request to fetch devices and its details by using following URL
http://{myip}/v1/users/username/devices?authorization={mytoken}
and i get the following response
[ { "device":"nodemcu", "description":"NodeMCU With ESP8266", "connection":{ "active":true, "ts":1486047553711 } } ]
I want to convert the ts "1486047553711" to proper date time.
Any help
It worked in javascript
new Date("1486047553711")
I sending request to fetch devices and its details by using following URL
http://{myip}/v1/users/username/devices?authorization={mytoken}
and i get the following response
[
{
"device":"nodemcu", "description":"NodeMCU With ESP8266", "connection":{
"active":true, "ts":1486047553711 } } ]
I want to convert the ts "1486047553711" to proper date time.
Any help