I do not know what is wrong with code below -
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layo
note*:
import java.text.DateFormat; import java.util.Date; // Donot import "import java.sql.Date;" TextView tv = (TextView) findViewById(R.id.textView1); String ct = DateFormat.getDateInstance().format(new Date()); tv.setText(ct);