diff --git a/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/utils/PersianCalendar.java b/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/utils/PersianCalendar.java index 5e2a44f..f807c1e 100644 --- a/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/utils/PersianCalendar.java +++ b/library/src/main/java/ir/blue_saffron/persianmaterialdatetimepicker/utils/PersianCalendar.java @@ -280,7 +280,7 @@ public String getPersianShortDateTime() { } public String getGregorianShortDate() { - return "" + this.formatToMilitary(get(Calendar.YEAR)) + this.delimiter + this.formatToMilitary(get(Calendar.MONTH) + 1) + this.delimiter + this.formatToMilitary(get(Calendar.DAY_OF_MONTH)); + return "" + this.formatToMilitary(get(Calendar.YEAR)) + this.delimiter + this.formatToMilitary(get(Calendar.MONTH) + 1) + this.delimiter + this.formatToMilitary(get(Calendar.DATE)); } private String formatToMilitary(int i) { return (i < 10) ? "0" + i : String.valueOf(i);