title: Adding time from string into date object swift
body: <p>I have a time coming from service in string form like so &quot;12:30 PM&quot;.</p>
  <p>I am able to get this time but I want to add this time in current date. like so</p>
  <pre><code>31/3/2021 12:30 PM 
  </code></pre>
  <p>The current date is in date object and coming time is in string format.</p>
  <p>Please let me know what is a right way to do so? I am right now taking 12, 30,from string and setting it via Calendar. But dont know how to set am pm . Please let me know how to append time with date object. Thanks in advance.</p>