Convert sting to date time in logstash

Have you seen the date filter? https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html