title: Angular - Converting Datepicker to JS Date and sending to API - Timezone horrors
body: <p><code>Angular</code> is pretty new for our organization, with the extent of our <code>JavaScript</code> being <code>jQuery</code> on Web Forms or <code>ASP MVC</code> pages.</p>
  <p>Our database and backend code doesn't have a concept of timezones or DST as we are really only concerned about the month, date, and year.</p>
  <p>With all that said, I've been running into an unending stream of errors relating to the dates being incorrect when it comes to DST and timezones with different <code>Angular approaches</code>.  Typically, the date is off by one when either the backend or Angular does its conversions.</p>
  <p>At first, I thought I had a solution with <code>.toLocaleDateString('en-us')</code>, but that was breaking on Safari for us.  Then, I thought we had it with <code>formatDate(myDateVar, 'MM/dd/yyyy', 'en-us', 'UTC)</code> but that was broken for Europeans (date off by one), but dropping the <code>'UTC'</code> fixed that.</p>
  <p>So that's the last few attempts I can remember, but this pain has been going on for months as we learn <code>Typescript</code> and <code>Angular</code>.  Currently, my latest attempt is <code>formatDate(myDateVar, 'MM/dd/yyyy', 'en-us')</code> which seems to be working.</p>
  <p>Is there a better way or a more standard way to accomplish this without all DST/timezone issues?
  All I want is the date they entered into the input and nothing else.  It also seems like we can't just create a date as UTC using the plain <code>JS Date object</code>.  Sometimes our inputs are text, other times they are of type date.</p>