title: Android Format date with time zone
body: <p>I need to format the date into a specific string.</p>
  
  <p>I used <code>SimpleDateFormat</code> class to format the date using the pattern "<strong><code>yyyy-MM-dd'T'HH:mm:ssZ</code></strong>" it returns current date as <br>
  "<code>2013-01-04T15:51:45+0530</code>" but I need as<br>
  "<code>2013-01-04T15:51:45+05:30</code>".</p>
  
  <p>Below is the coding used,</p>
  
  <pre><code>Calendar c = Calendar.getInstance();
  SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.ENGLISH);      
  Log.e(C.TAG, "formatted string: "+sdf.format(c.getTime()));
  </code></pre>
  
  <p><strong>Output</strong>: formatted string: <code>2013-01-04T15:51:45+0530</code></p>
  
  <p>I need the format as <code>2013-01-04T15:51:45+05:30</code> just adding the colon in between gmt time.</p>
  
  <p>Because I'm working on Google calendar to insert an event, it accepts only the required format which I have mentioned.</p>