title: Flutter: Converting string to date and date to integer
body: <p>I have a date coming from some JSON in the format "2020-05-19". I need to convert this to a DateTime variable so I can format it back to a string for displaying, but i also need to use the DateTime value and add x number of days to it. So I also need to be able to convert it to an integer so I can add on (x_days * 86400000).</p>
  
  <p>Can anyone tell me how to do this, or is there a better way to do what I'm trying to do?</p>
  
  <p>Cheers,</p>
  
  <p>Paul</p>