Parse yaml date in where clause

I got an data/events.yml with event data like:

Entries:
  - Title: "Some event"
    date: 2018-09-11T15:20:15+09:100 
  - Title: "Some old event"
    date: 2017-09-11T15:20:15+09:100 

Now, I’d like to display only upcoming events starting in the future.
I’m using something like this to only display eg “Some event”:

{{ $upcomingEvents := where $.Site.Data.events.Entries "date" "ge" now }}

This works when using toml, but for the life of me I cant seem to get the yaml date parsed in that where clause: $upcomingEvents will just be an empty array.

I tried things like this, but to no avail:
{{ $upcomingEvents := where $.Site.Data.events.Entries (time "date") "ge" now }}

Somebody got a hint for me?

Fyi using time with a single yaml entry works nicely, so the input fmt seems ok.

Cheers & thanks for any pointer
Carsten

I would start with some printf of the .Site.Data.events.Entries to see what it’s really like.

{{printf "%+v" $.Site.Data.events.Entries}}

will print

[map[Title:Some event date:2018-09-11T15:20:15+09:100] map[Title:Some old event date:2017-09-11T15:20:15+09:100]]

So, date is a string. I can, however parse it as date just fine using the time function.
I only dont know how to do that inside of the where statement. Any ideas?

Or, can I actually use a datetime in yaml?

Sorry, my above example data/events.yml is incorrect - here’s the right one:

Entries:
  - Title: "Some event"
    date: 2018-09-11 15:20:15
  - Title: "Some old event"
    date: 2017-09-11 15:20:15

Now, using (time .date) works fine when iterating over the entries.

However, still no idea how to use something like:

where $.Site.Data.events.Entries (time "date") "ge" now