fabexdateformatter 1.0.5 copy "fabexdateformatter: ^1.0.5" to clipboard
fabexdateformatter: ^1.0.5 copied to clipboard

Fabex Date Formatter is an easy tool to get several functions related to DateTime, TimeOfDay. This package can be used to convert one format to other with a function call.

example/lib/main.dart

import 'package:fabexdateformatter/fabexdateformatter.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Fabexdateformatter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  FabexFormatter fabexFormatter = FabexFormatter();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Fabex Date Formatter"),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text("10th month is ${fabexFormatter.getMonthName(10)}"),
            Text("Previous month is ${fabexFormatter.getPreviousMonthNum(6)}"),
            Text(
                "String Date TIme is ${fabexFormatter.dateTimeToStringDate(DateTime.now())}")
          ],
        ),
      ),
    );
  }
}
5
likes
120
pub points
44%
popularity

Publisher

verified publisherziqx.in

Fabex Date Formatter is an easy tool to get several functions related to DateTime, TimeOfDay. This package can be used to convert one format to other with a function call.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on fabexdateformatter