Parsing dates in templates

I was hoping to use time.Parse to automatically set the expiryDate in an events archetype. Something like…

archetypes/events.md:

+++
{{- $eventDate := (getenv "EVENT_DATE") }}
eventDate = "{{ $eventDate }}"
expiryDate = "{{ (time.Parse time.RFC3339 $eventDate).AddDate 0 0 1 }}"
+++

Then I could just:

$ EVENT_DATE="2017-10-26T:17:00-07:00" hugo new events/myevent.md

…and not have to worry about copy/paste errors.