title: How to get time format using country ISO code in android?
body: <p>I am working on simple application to show the time in different formate. To show the time I am displaying ISO country code using this ISO code. Can I able to change time in that ISO country format?</p>
  
  <p>I have written code as follows</p>
  
  <pre><code>TelephonyManager tMgr = 
      (TelephonyManager)getApplicationContext().getSystemService(
          Context.TELEPHONY_SERVICE);
  
  String iso = tMgr.getNetworkCountryIso();
  Log.v("Device iso", "=======&gt;" + iso);
  String mbNo = tMgr.getLine1Number();
  Log.v("mbNo", "=======&gt;" + mbNo);
  </code></pre>
  
  <p>Here I am getting iso as US. Can I show the current system time format in US time format?</p>
  
  <p>I have used Date class to show time as follows</p>
  
  <pre><code>DateFormat df = DateFormat.getTimeInstance();
  systime = df.format(new Date());
  </code></pre>
  
  <p>It is displaying time in HH:MM:SS AM/PM format. I would like to display the above time as US format.</p>
  
  <p>How can I display the time in US or any other format?</p>