Fix value in string.xml and format date

This commit is contained in:
Nezumi
2023-02-08 11:51:39 +07:00
parent 349aab1988
commit 11d7e18ccd
3 changed files with 22 additions and 5 deletions
@@ -139,7 +139,7 @@ public class SignUpActivity extends AppCompatActivity {
}
private void updateLabel(){
String myFormat="MM/dd/yy";
String myFormat="dd/MM/yyyy";
SimpleDateFormat dateFormat=new SimpleDateFormat(myFormat, Locale.US);
editText.setText(dateFormat.format(myCalendar.getTime()));
}
+4 -4
View File
@@ -16,9 +16,9 @@
<string name="repeat_password_text">xác nhận mật khẩu</string>
<string name="first_name_text">Họ</string>
<string name="last_name_text">Tên</string>
<string name="birthday_text">ngày sinh nhật (mm/dd/yyyy)</string>
<string name="birthday_text">ngày tháng năm sinh</string>
<string name="address_text">địa chỉ</string>
<string name="phone_or_email">phone or email</string>
<string name="forgot_password">Forgot Password?</string>
<string name="dont_have_an_account">Don\'t have an account?</string>
<string name="phone_or_email">số điện thoại hoặc email</string>
<string name="forgot_password">quên mật khẩu?</string>
<string name="dont_have_an_account">Bạn chưa có tài khoản?</string>
</resources>