Groups
Groups
Sign in
Groups
Groups
Node-RED
Conversations
About
Send feedback
Help
Convert datepicker to YYYY-MM-DD Format
554 views
Skip to first unread message
Garry Hayne
unread,
Mar 2, 2017, 12:39:29 PM
3/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
Under the Dashboard - Site tab
for additional info click the i icon
Dave C-J
unread,
Mar 2, 2017, 2:02:26 PM
3/2/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
or this node may help
https://www.npmjs.com/package/node-red-contrib-moment
Reply all
Reply to author
Forward
0 new messages