Sorry for this. I've created a small flow just with the date range picker now.
You can find the flow below:
[
{
"id": "f7ea14f57a69ae8f",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "40bc636bac0110a2",
"type": "ui_template",
"z": "f7ea14f57a69ae8f",
"group": "",
"name": "HEAD scripts and css",
"order": 6,
"width": 0,
"height": 0,
"format": "<script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/jquery/latest/jquery.min.js\"></script>\n<script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/momentjs/latest/moment.min.js\"></script>\n<script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js\"></script>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css\" />",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "global",
"className": "",
"x": 220,
"y": 160,
"wires": [
[]
]
},
{
"id": "d3f7b8172146b835",
"type": "ui_template",
"z": "f7ea14f57a69ae8f",
"group": "100a09d1edca5ba4",
"name": "",
"order": 7,
"width": "0",
"height": "0",
"format": "<input type=\"text\" id=\"daterange1\" />\n\n<script>\n const scope = this.scope;\n $('#daterange1').daterangepicker({\n timePicker: true,\n locale: {\n format: 'YYYY-MM-DD hh:mm A'\n }\n });\n $('#daterange1').on('apply.daterangepicker', function(ev, picker) {\n let payload = {};\n payload.startDate = picker.startDate.format('YYYY,MM,DD,hh,mm');\n payload.endDate = picker.endDate.format('YYYY,MM,DD,hh,mm');\n scope.send({payload:payload});\n });\n\n</script>",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"className": "",
"x": 180,
"y": 200,
"wires": [
[]
]
},
{
"id": "100a09d1edca5ba4",
"type": "ui_group",
"name": "Date range",
"tab": "5132060d.4cde48",
"order": 1,
"disp": true,
"width": "7",
"collapse": false,
"className": ""
},
{
"id": "5132060d.4cde48",
"type": "ui_tab",
"name": "History",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]