I have in my app activity two textviews one with date(“yyyy-mm-dd “) and one with time(“hh:mm”)
How can i make a string that combines these textviews together so my String will be (yyyy-mm-dd hh:mm) so that i can sort datetime text values in my sqlite database.
code for date textview:
String date = ((TextView) findViewById(R.id.dateTV))
.getText().toString();
code for time textview:
String time= ((TextView) findViewById(R.id.timeTV))
.getText().toString();
How to make String datetime tha combines them in one line/fast?
Concatenate with a plus-sign