package pl.kwarda.test.hellow;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;

import java.util.Date;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ((TextView)findViewById(R.id.details)).setText(new Date().toString());

    }

    public void goNext(View view) {
        startActivity(new Intent(this,LoginActivity.class));
    }
}

package pl.kwarda.test.hellow;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;

import java.util.Date;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ((TextView)findViewById(R.id.details)).setText(new Date(System.currentTimeMillis()).toString());

    }

    public void goNext(View view) {
        startActivity(new Intent(this,LoginActivity.class));
    }
}

change date constructor