Format date as milliseconds using template functions

That’s what I am asking though. .Params.eventstart is a timestamp, a string in the front matter. What I’m asking for is a way to cast it to a time.Time struct using template functions because I can’t find a way to do it.