Casting and getting values from date picker and time picker in android
- by Rahul Varma
Hi ,
I have a date picker and a time picker in my app. Can anyone tell me how to get the values of the date and time that are selected??? What i mean to say is, for EditText we can declare as
final EditText Name = (EditText) this.findViewById(R.id.nametext);
and we can cast the data of it by using Name.getText().toString().
So similarly how can we get the values of date picker and time picker to a string???