format_indonesia_v2 0.0.8 copy "format_indonesia_v2: ^0.0.8" to clipboard
format_indonesia_v2: ^0.0.8 copied to clipboard

Library for Indonesian date and numeric formatting, it helps to reformat date and numeric variable to Indonesia language

example/main.dart

import 'package:format_indonesia_v2/format_indonesia_v2.dart';

void main() {
  // using current time
  var waktu = Waktu();
  print(waktu
      .yMMMMEEEEd()); // Jumat, 19 Juni 2020 (this was the current time when development)

  var tanggal = Waktu();
  print(tanggal.format(
      'dd MMM yyyy')); // 19 Jun 2020 (this was the current time when development)

  // using specific time
  DateTime datetime = DateTime.parse('2020-05-31 12:34:13');
  print(Waktu(datetime).yMMMMEEEEd()); // Minggu, 31 Mei 2020

  // using numberic
  var numerik = Numerik(911);
  print(numerik.terbilang()); // sembilan ratus sebelas

  // using rupiah
  var rupiah = Rupiah();
  print(rupiah.convertToRupiah(15000)); // Rp 15.000
}
1
likes
140
points
37
downloads

Publisher

verified publisherrizkyghofur.blogspot.com

Weekly Downloads

Library for Indonesian date and numeric formatting, it helps to reformat date and numeric variable to Indonesia language

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

intl, test

More

Packages that depend on format_indonesia_v2