Convert a string to a time/datetime

I have also tried with dateFormat and this other post Parsing dates in templates but I don’t find a solution…