I have a Calendar object, and i know how to format it using android.text.format()
How can i get the phone settings for date and time to format the object to format set by the user. Like 24 hour clock , mmm dd yyyy…
I have a Calendar object, and i know how to format it using android.text.format()
Share
What I wanted was to provide the date and time formatted according to the user’s preferences and locale, in separate TextViews.
I have done this using static methods in the
DateFormatclass: