intl_date_helper 0.1.4
intl_date_helper: ^0.1.4 copied to clipboard
A simple utility for date formatting, conversion, and timezone support.
π intl_date_helper #
A lightweight and powerful Flutter utility for date formatting, timezone conversion, and timestamp handlingβall in one package! π
ππ New Features #
π Business Dates #
- Total Business Days Calculation β Calculate the total number of business days between two dates. π
- Business Days List β Retrieve a list of business days between two dates. π
π Additional Extensions #
- Relative Time β Get a relative time string from a date. β³
- Date Checks β Check if a date is today, yesterday, tomorrow, within the last 7 days, this week, or a leap year. π
π Features #
β
Effortless Date Formatting β Convert any date format easily. ποΈ
β
Timezone Support β Seamlessly handle multiple time zones using the timezone
package. π
β
UTC & Local Time Conversions β Switch between UTC and local time with ease. π
β
Timestamps Made Simple β Format timestamps without hassle. β³
π¦ Installation #
Add this to your pubspec.yaml
file:
dependencies:
intl_date_helper: ^1.0.0
Then, run:
π Usage #
Check out the README page for examples! π
flutter pub get
π Usage #
import 'package:intl_date_helper/intl_date_helper.dart';
void main() {
String formattedDate = IntlDateHelper.formatDate("2025-03-01T12:30:00Z", outputFormat: "yyyy-MM-dd HH:mm:ss");
print("Formatted Date: \$formattedDate");
}
For more examples, check out the Example Tab. π
π€ Author #
Faiz Hassan
π» GitHub: @faizts
π§ Email: faizhassan.off@gmail.com
β Like this package? #
Give it a β on pub.flutter-io.cn to show your support! π