Casting and getting values from date picker and time picker in android
Posted
by Rahul Varma
on Stack Overflow
See other posts from Stack Overflow
or by Rahul Varma
Published on 2010-04-07T12:48:26Z
Indexed on
2010/04/07
13:13 UTC
Read the original article
Hit count: 488
android-sdk
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???
© Stack Overflow or respective owner