Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

convert string date to datetime and format

var dateString = "2020-09-25T10:13:21.246321+01:00";
String formattedDateString = DateFormat('do LLLL yyyy').format(DateTime.parse(dateString)); 
// formattedDateString - OUTPUT: "25 September 2020"
Source by api.flutter.dev #
 
PREVIOUS NEXT
Tagged: #convert #string #date #datetime #format
ADD COMMENT
Topic
Name
1+4 =