using Dates
str = "SMAP_L4_SM_gph_20180517T221805"
# Define the format, `S` and `M` need to be escaped because they
# are format identifiers
df = dateformat"\S\MAP_L4_\S\M_gph_yyyymmddTHHMMSS"
DateTime(str, df)
# 2018-05-17T22:18:05
5 Likes