import 'package:intl/intl.dart' code example Example 1: intl flutter dependencies: intl: ^0.16.1 Example 2: intl flutter dependencies: intl: ^0.16.1