symmetricalboy Posted June 6 Report Share Posted June 6 (edited) EDIT: Ignore this initial message. Read the following comment for more info. Edited June 6 by symmetricalboy Useless drivel Link to comment Share on other sites More sharing options...
symmetricalboy Posted June 6 Author Report Share Posted June 6 Date fields on Android need to respect the format of the device locale, i.e. my US phone should display the date MM/DD/YYYY by default. Here are the key Android developer documentation resources related to locale and date formatting: Core Classes Locale: The foundation for handling locale-specific information. Documentation: https://developer.android.com/reference/java/util/Locale Key methods: getDefault(), getDisplayName(), getLanguage(), getCountry() DateFormat: High-level class for locale-sensitive date formatting. Documentation (Java): https://developer.android.com/reference/java/text/DateFormat SimpleDateFormat: More customizable date formatting with explicit patterns. Documentation (Java): https://developer.android.com/reference/java/text/SimpleDateFormat Note: For modern Android development, consider using java.time APIs where possible. android.text.format.DateFormat: Android-specific utility class for date formatting. Documentation: https://developer.android.com/reference/android/text/format/DateFormat Guides and Examples Language and Locale Resolution Overview: Explains how Android handles language and locale settings. Documentation: https://developer.android.com/guide/topics/resources/multilingual-support Formatting Date and Time: Provides examples of date and time formatting using various classes. Documentation: (Check for updated guides on Android developer site) Additional Notes Best Practices: Use DateFormat or the Android-specific android.text.format.DateFormat when possible for automatic locale handling. Avoid hardcoding date formats if you want your app to be adaptable to different regions. User Preferences: Respect user settings for 12/24-hour time using DateFormat.is24HourFormat(context). Java 8+ APIs: If you are targeting newer Android versions (API level 26 or higher), you can also leverage the modern java.time package for enhanced date and time manipulation. Link to comment Share on other sites More sharing options...
Amandeep Kumar Posted June 7 Report Share Posted June 7 I have raised a feature request with the Enpass Technical Team to explore the possibility of allowing customization of date formats in the future. We understand the importance of having the correct date format displayed according to your preferences, and we are actively looking into this. In the meantime, we have a quick workaround for you: Desktop App Update: Please add or update the credentials that include dates (e.g., SSN, other items with dates) via the Enpass Desktop App first. Mobile Sync: Once you have updated the items on the Desktop App, sync your mobile device. This should display the date in the correct format, i.e., MM/DD/YYYY, on your mobile device rather than DD/MM/YYYY. #SI-2830 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now