// localization of date and time using Locale
// english, US
myDateFormat.locale = Locale(identifier: "en_US")
print(myDateFormat.string(from: Date()))
// Sep 3, 2019

// french, France
myDateFormat.locale = Locale(identifier: "fr_FR")
print(myDateFormat.string(from: Date()))
// 3 sept. 2019

// Japanese, Japan
myDateFormat.locale = Locale(identifier: "ja_JP")
print(myDateFormat.string(from: Date()))
// 2019/09/03