title: How to get Current Date using GMT in android?
body: <p>I want Current Date in GMT wise Timezone.I used following code.</p>
  
  <pre><code> public static Date getGMTDate(String dateFormat) throws ParseException
     {
          SimpleDateFormat dateFormatGmt = new SimpleDateFormat(dateFormat);
          dateFormatGmt.setTimeZone(TimeZone.getTimeZone("GMT"));
  
          // Local time zone
          SimpleDateFormat dateFormatLocal = new SimpleDateFormat(dateFormat);
  
          // Time in GMT
          return dateFormatLocal.parse(dateFormatGmt.format(new Date()));
     }
  </code></pre>
  
  <p>//call above function.</p>
  
  <pre><code>SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  date = getGMTDate("yyyy-MM-dd HH:mm:ss");
  </code></pre>
  
  <p>when i will change my device date then time is display in GMT formate but Date is not display in GMT timezone.its display of device's date.
  but I want Current GMT Date.</p>