I get an appointment thru a Webhook.
Now i try to split it in date and time.
How do i do this in an item-function node?
I got an appointment look like this in the Json-Body: “startDate”: “2022-04-27 15:45:00”,
With:
item.StartDate = $node[“Webhook Kalendar.Digital”].json[“body”][“startDate”].substring(0,10);
i get the date (YYYY-MM-DD) that’s ok.
How do i get the time of the appointment?
item.StartTime = $node[“Webhook Kalendar.Digital”].json[“body”][“startDate”]???;
I try:
item.StartDate = $node[“Webhook Kalendar.Digital”].json[“body”][“startDate”].substring(12,8);
but this does not work.