title: Facing problem While Converting Date to MilliSeconds
body: <p>In my <strong>Android Application</strong>, I am trying to convert Date/Time to Milliseconds, check the below code:</p>
  
  <pre><code>public long Date_to_MilliSeconds(int day, int month, int year, int hour, int minute)
  {
  
         Calendar c = Calendar.getInstance();
         c.setTimeZone(TimeZone.getTimeZone("UTC"));
         c.set(year, month, day, hour, minute, 00);
  
          return c.getTimeInMillis();
  
  }
  </code></pre>
  
  <p><strong>Problem:</strong> I am getting 1290455340800(Nov 22 14:49:00 EST 2010) for Nov 22 19:49:00 EST 2010 (i.e. 5 hours back)</p>
  
  <p><strong><code>FYI, I am Currently in Indian TimeZone, but application can be executed from any country. so How do i exact Convert the date/time into the Milliseconds?</code></strong></p>