Hi all I'm getting data from google calender,
data comes as an array of events,
Than with a template node and ng-repeat I'm getting this data to my dashboard.
Now I'm trying to find a solution to convert date data from this api to more human readable format like
01.04.2021 09:00
but data comes as this format
2021-04-01T09:00:00+03:00
I guess jsonata date and time functions can help me but I cannot find a way to use it
can someone point me to the right direction or an example?
I try to make it with a change node without success
Here is my simplified flow
[{"id":"2f54fd4e.9ac88a","type":"inject","z":"8b953003.204528","name":"","props":[{"p":"events","v":"[{\"kind\":\"calendar#event\",\"etag\":\"\\\"3233751418198000\\\"\",\"id\":\"_8cpjaha48cqk8ba48h2j6b9k690k2b9p6t1jeba66sq38gph60rjidpl88778c\",\"status\":\"confirmed\",\"htmlLink\":\"XzhjcGphaGE0OG4545NxazhiYT67676Q4aDJqNmI5azY5MGsyYjlwNnQxamViYTY2c3EzOGdwaDYwcmppZHBsOGNfMjAyMTA0MTBUMTAwMDAwWiBtYWlsQHN0dWRpb21vaS5jbw\",\"created\":\"2021-03-27T20:03:12.000Z\",\"updated\":\"2021-03-27T20:08:29.099Z\",\"summary\":\"Long title event from calendar\",\"creator\":{\"email\":\"mail@test.com\",\"self\":true},\"organizer\":{\"email\":\"mail@test.com\",\"self\":true},\"start\":{\"dateTime\":\"2021-04-10T13:00:00+03:00\",\"timeZone\":\"Etc/GMT-3\"},\"end\":{\"dateTime\":\"2021-04-10T14:00:00+03:00\",\"timeZone\":\"Etc/GMT-3\"},\"recurrence\":[\"RRULE:FREQ=YEARLY\"],\"iCalUID\":\"C35EDC5D-DDE3-42AA-97C7-F744C107975C\",\"sequence\":0,\"reminders\":{\"useDefault\":true},\"eventType\":\"default\"},{\"kind\":\"calendar#event\",\"etag\":\"\\\"3233754590872000\\\"\",\"id\":\"7rskp14sfcmhh1gfpfcbck66mk\",\"status\":\"confirmed\",\"htmlLink\":\"N3Jza3AxNHNmY21oaDFnZnBmY2JjazY2bWsgbWFpbEBzdHVkaW9tb2kuY28\",\"created\":\"2021-03-27T19:57:12.000Z\",\"updated\":\"2021-03-27T20:34:55.436Z\",\"summary\":\"test 1\",\"creator\":{\"email\":\"mail@test.com\",\"self\":true},\"organizer\":{\"email\":\"mail@test.com\",\"self\":true},\"start\":{\"dateTime\":\"2021-03-31T23:00:00+03:00\"},\"end\":{\"dateTime\":\"2021-04-01T00:00:00+03:00\"},\"iCalUID\":\"google.com\",\"sequence\":0,\"reminders\":{\"useDefault\":true},\"eventType\":\"default\"},{\"kind\":\"calendar#event\",\"etag\":\"\\\"3233754641734000\\\"\",\"id\":\"23a83ocucpgm7i1sledi0s9aih\",\"status\":\"confirmed\",\"htmlLink\":\"MjNhODNvY3VjcGdtN2kxc2xlZGkwczlhaWggbWFpbEBzdHVkaW9tb2kuY28\",\"created\":\"2021-03-27T19:57:29.000Z\",\"updated\":\"2021-03-27T20:35:20.867Z\",\"summary\":\"test2\",\"description\":\"event with notes bla bla bla bla bla bla bla\",\"creator\":{\"email\":\"mail@test.com\",\"self\":true},\"organizer\":{\"email\":\"mail@test.com\",\"self\":true},\"start\":{\"dateTime\":\"2021-04-01T09:00:00+03:00\"},\"end\":{\"dateTime\":\"2021-04-01T10:00:00+03:00\"},\"iCalUID\":\"23a83ocucpgm7i1sledi0s9aih@google.com\",\"sequence\":0,\"reminders\":{\"useDefault\":true},\"eventType\":\"default\"},{\"kind\":\"calendar#event\",\"etag\":\"\\\"3233754699292000\\\"\",\"id\":\"5lls8ejus9msd1nchagl8aab1o\",\"status\":\"confirmed\",\"htmlLink\":\"NWxsczhlanVzOW1zZDFuY2hhZ2w4YWFiMW8gbWFpbEBzdHVkaW9tb2kuY28\",\"created\":\"2021-03-27T20:35:49.000Z\",\"updated\":\"2021-03-27T20:35:49.646Z\",\"summary\":\"test A\",\"creator\":{\"email\":\"mail@test.com\",\"self\":true},\"organizer\":{\"email\":\"mail@test.com\",\"self\":true},\"start\":{\"dateTime\":\"2021-04-01T00:15:00+03:00\"},\"end\":{\"dateTime\":\"2021-04-01T01:15:00+03:00\"},\"iCalUID\":\"5lls8ejus9msd1nchagl8aab1o@google.com\",\"sequence\":0,\"reminders\":{\"useDefault\":true},\"eventType\":\"default\"}]","vt":"json"}],"repeat":"","crontab":"","once":true,"onceDelay":"1","topic":"","x":170,"y":400,"wires":[["da8d12f.c3782f"]]},{"id":"da8d12f.c3782f","type":"change","z":"8b953003.204528","name":"","rules":[{"t":"set","p":"events","pt":"msg","to":"payload.items","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":440,"y":400,"wires":[["2fec0edb.b54572"]]},{"id":"2fec0edb.b54572","type":"ui_template","z":"8b953003.204528","group":"8f918d7.5af32f","name":"test calendar","order":6,"width":2,"height":5,"format":"<style>\n@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); \n.boxcal {\n\tbackground: #ffffff;\n\tmargin-left: 0px;\n\tmargin-top:0px;\n\tpadding-left:5px;\n\twidth: 215px;\n}\n.event {\n max-width:210px\n\twidth: 210px;\n}\np.pisim {\n text-transform:uppercase;\n font-family: 'Roboto', sans-serif;\n font-size:20px;\n color:#000000;\n}\np.pdesc {\n font-family: 'Roboto', sans-serif;\n font-size:10px;\n color:#000000;\n}\np.ptime {\n font-family: 'Roboto', sans-serif;\n font-size:10px;\n color:#000000;\n}\n</style>\n\n<div ng-repeat=\"item in msg.events\" class=\"boxcal\">\n\n<div class=\"event\"><p class=\"pisim\">{{item.summary}}</p></div>\n<div class=\"event\"><p class=\"pdesc\">{{item.description}}</p></div> \n<div class=\"event\"><p class=\"ptime\">{{item.start.dateTime}}</p></div> \n<hr>\n</div>","storeOutMessages":false,"fwdInMessages":false,"resendOnRefresh":false,"templateScope":"local","x":750,"y":400,"wires":[[]]},{"id":"8f918d7.5af32f","type":"ui_group","name":"all","tab":"c1dcfb03.ffed9","order":5,"disp":false,"width":13,"collapse":false},{"id":"c1dcfb03.ffed9","type":"ui_tab","name":"dash","icon":"dashboard","order":1}]