Dart: Localization

import 'package:intl/date_symbol_data_local.dart';
import 'package:intl/intl.dart';

main() {
  print(DateFormat.yMMMEd('en_US').format(DateTime.now()));
  // Sat, Feb 26, 2022
  
  print(DateFormat.yMMMEd('en_US').addPattern('jms').format(DateTime.now()));
  // Sat, Feb 26, 2022 3:15:37 PM
  
  print(DateFormat.yMMMEd('en_US').addPattern('Hms').format(DateTime.now()));
  //Sat, Feb 26, 2022 15:15:37
}

TagTimes

Simple time tracking tool
Developed by Namu Works