i want to use time information only to calculate
How do I extract data?
Data from Even Google calendar
Hey @Panupol_Sonnuam
Try following:
{{$json["start"]["dateTime"]}}
{{$json["start"]["timeZone"]}}
{{$json["end"]["dateTime"]}}
{{$json["end"]["timeZone"]}}
If it doesn’t work, please let us know more what you try to accomplish
When you have datetimes in that format, you can convert them to Luxon DateTime objects using DateTime.fromISO(your_field)
. (More info on how n8n handles dates and times here).
To then output just the time, you can add this on the end .toLocaleString(DateTime. TIME_SIMPLE);
. More information and options in the Luxon docs.
So the full expression would be DateTime.fromISO(your_field).toLocaleString(DateTime. TIME_SIMPLE)