Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

node-redで遊ぶ その2:javascriptな関数をつかう

実際のところ


// Create a Date object from the payload
var date = new Date(msg.payload);
// Change the payload to be a formatted Date string
msg.payload = date.toString();
// Return the message so it can be sent on
return msg;



参考もと

nodered.org