I would like to fill my dashboard with daily values for 200 days.
The values have a timestamp in the ms-format 1579046400000.
Unfortunately this format is total unreadable for a bar chart and too long.
Is it possible to convert into a nice date-format like 20200224 ? or 200224 ?
unfortunately I cannot use this on my function output, because I get 200 values from an SQL database query and I get a timestamp and a value
when I use the Date/Time Formatter the value is gone afterwards
so I have to solve this with another function node
var myDate = msg.payload.Timeseries;;
var d = myDate.toGMTString();
node.status({fill:"green",shape:"ring",text:d});
return msg;
this get you a date in day date month year and then time, you can either research a little more the GMTString opitions or parse out the stuff you don't want