title: Moment JS - parse UTC and convert to Local and vice versa
body: <p>I have gone through the documentation and am a tiny bit confused about how to proceed.
  There are similar questions, but none talk about parsing particular dates received in formats and swapping between local and utc dates.</p>
  
  <ol>
  <li><p>I receive a local datetime, local datetime format and need to generate utc datetime from it in a particular format and this is how I think I should do it. <code>moment(dateTime,localDateTimeFormat).utc().format(specifiedFormat);</code></p></li>
  <li><p>I receive utc datetime in a particular format and have to generate locale specific datetime in a particular format. How do i do it?
  <code>moment.utc(utcDateTime, utcDateTimeFormat).toDate();</code> gives me javascript date i believe. How do I format it then?? Do I have to create a new moment using the generated Date object?</p></li>
  </ol>
  
  <p>Another thing I could do would be getting the timezone and then formatting. I wonder if I am taking the wrong route here. Please help.</p>