title: How to parse date from Datepicker in UTC format?
body: <p>I want from user to pick a date and I want to set this date in ParseObject (I'm using Parse.com). Column in ParseObject is type Date and it is in same format as SimpleDateFormat below. But from DatePicker I will get just year, month and day. Those attributes are also in wrong format. I also need exact time.</p>
  
  <p>Is there any way how to return Date from Datepicker in exact same format?</p>
  
  <pre><code>alertDialogDateBtn?.setOnClickListener {
              val c = Calendar.getInstance()
  
              val dpd = DatePickerDialog(this,
                  DatePickerDialog.OnDateSetListener { _, year, monthOfYear, dayOfMonth -&gt;
                      val simpleDateFormat = SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SS'Z'")
                      chosenDate = simpleDateFormat.parse(year.toString() + "-" + (monthOfYear + 1).toString() + "-" + dayOfMonth.toString())
                  }, c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE))
                      dpd.show()
          }
  </code></pre>