Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

convert string date in Format yyyyMMddHHmmss to DateTime dart

String date = '20180626170555';
String dateWithT = date.substring(0, 8) + 'T' + date.substring(8);
DateTime dateTime = DateTime.parse(dateWithT);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #date #Format #yyyyMMddHHmmss #DateTime #dart
ADD COMMENT
Topic
Name
9+3 =