Flutter: Format a Date with locale using Dart

import 'package:intl/intl.dart';  //for date format
import 'package:intl/date_symbol_data_local.dart'; //for date locale
Intl.defaultLocale = "zh_HK";   //sets global,//for specific Format instence only 
var newFormat = new DateFormat.yMMMMd('zh_HK') // pass…




iOS Developer | Swift | Flutter

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top 50 Selenium Interview Questions and Answers 2018

How To Debug A Memory Leak In An iOS App That Is Caused By A Third Party SDK (Part 3 of 3)

The hottest new API all App developer should have a look at

How to Install and Set up Ubuntu 20.04 on an Old MacBook Pro

The Middle Way: Annotation-based Transaction Management

Setup a Kubernetes Cluster on GCP with Cloud NAT

How to Interact With Users in Programming?

Three Methods Comparison To Move Magento 1 To Magento 2

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Prafulla Singh

Prafulla Singh

iOS Developer | Swift | Flutter

More from Medium

Flutter Journey….

Create and display a SnackBar in flutter.

Building Android Widgets In Flutter: Remember these Simple Points

Building a toggle-theme switch button in Flutter to toggle between dark & light mode