title: Sending DATE/TIMESTAMP from device to REST service
body: <p>I am trying to send a date and time to my SQL oracle database through my REST service. However, the field in the SQL database is getting null.</p>
  
  <p>Here is my code to get the date and time: </p>
  
  <pre><code> public void getCurrentDateandTime() throws ParseException {
      Calendar c = Calendar.getInstance();
      c.getTime();
      SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
      currentDateandTime = dateFormat.format(c.getTime());
      CDAT = dateFormat.parse(currentDateandTime);
  }
  </code></pre>
  
  <p>In my REST service, this field is specified as a date datatype, however my the temporal I am using is TIMESTAMP as I want to get the date and time. </p>
  
  <p>When I use postman sending through test data like this:</p>
  
  <pre><code>"createdTimestamp": "2018-02-12T09:27:39"
  </code></pre>
  
  <p>It is being received and shown in my SQL database.</p>
  
  <p>Why is the date I am sending from Android receiving null?</p>