Convert datepicker to YYYY-MM-DD Format

554 views
Skip to first unread message

Garry Hayne

unread,
Mar 2, 2017, 12:39:29 PM3/2/17
to Node-RED
Hi,

I am trying to get the output of the date picker into a query of a Mysql database. How can I convert it into the "YYYY-MM-DD" format?

Regards, Garry
 

Dave C-J

unread,
Mar 2, 2017, 1:58:55 PM3/2/17
to node...@googlegroups.com
Under the Dashboard - Site tab
Inline images 1
for additional info click the i icon

Dave C-J

unread,
Mar 2, 2017, 2:02:26 PM3/2/17
to node...@googlegroups.com
Ah - no that's just visually :-) you need to convert the timestamp emitted into whatever format you want ... You can either use a function node and the Date functions https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date
Reply all
Reply to author
Forward
0 new messages