title: Converting string to date with timezone
body: <p>I have a string in the pattern yyyy-MM-dd hh:mm a
  and i can get the time zone object separately in which the above string represents the date.</p>
  
  <p>I want to convert this to the below format.
  yyyy-MM-dd HH:mm:ss Z</p>
  
  <p>How can i do this?</p>