title: saving the actual date
body: <pre><code>         submit=(Button) findViewById(R.id.submit);
      submit.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
              value2=null;
              //value=dataSnapshot.getValue(String.class);
              value2=newNumber.getText().toString();
              Log.d(TAG, "onClick: the value 2 is: "+value2);
              type=spin;
  
              Log.d(TAG, "onClick: the type is "+type);
  
              Map map = new HashMap();
              map.put("time", ServerValue.TIMESTAMP);
              myRef.child(type).updateChildren(map);
  
  
              DatabaseReference newRef=myRef.child(type);
  
  
              newRef.push().setValue(value2);
  </code></pre>
  
  <p>I was trying to save the actual date, but when I click the button nothing happens, but when I remove the Map it actually works.</p>