Skip to content

Repository files navigation

Android multi calender tools library for android

android date tools and date picker for tree calendar systems Jalali , Hijri , Gregorian

Screen shots

primary color will be your theme color

Add to your project

copy this to "yourProject/app/libs"
have problem?

How to use

date converter: more here.

DateModelhijri = DateConverter.GregorianToHijri(2018, 1, 1);
//hijri.day;//hijri.month;//hijri.year;

date picker:
xml:(don't change height and width)

<com.ali.uneversaldatetools.datePicker.UDatePicker
android:id="@+id/date_picker"android:layout_width="300dp"android:layout_height="350dp"/>

java:

UDatePickeruDatePicker = findViewById(R.id.date_picker);
//push date to show in first timeuDatePicker.ShowDatePicker(dateSystem);
//or use current dateuDatePicker.ShowDatePicker(Calendar.Jalali);
//get on day selected eventuDatePicker.setOnDateSelected((dateSystem, unixTime) -> {
//do something...
});
//or get date when ever you wantuDatePicker.getSelectedUnixTime();//as a unix timeuDatePicker.getSelectedDate();//as a DateSystem object

Supported language:

1.persian
2.english
and its easy to add new language see here.

LICENCE

under MIT licence

About

android date tools and date picker for tree calendar "Jalali" and "Hijri" and "Gregorian"

Topics

Resources

Stars

28 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages