i have a string containing date in format yyyyMMddHHmmss (e.g.) (20180626170555) and i am using following code to convert it into date time
dateTimeFromString(
From the docs, you need Single M to month in year :
M
month in year
dateTimeFromString(json['dateTime'], "yMdHms")