// updates the date we display in the TextView
private void updateCurrentDate() {
editT1.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append("-")
.append(mDay).append("-")
.append(mYear).append(" "));
}
เปลี่ยนเป็น
Code
// updates the date we display in the TextView
private void updateCurrentDate() {
editT1.setText(
new StringBuilder()
// Month is 0 based so add 1
.append(mMonth + 1).append("/")
.append(mDay).append("/")
.append(mYear).append(" "));
}