Skip to content

Commit

Permalink
fix bug formatToMilitary and add getGregorianShortDate
Browse files Browse the repository at this point in the history
  • Loading branch information
hos3ein committed Sep 4, 2016
1 parent 035035f commit 79d77f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79d77f4

Please sign in to comment.