Sunday, April 1, 2012

[android-developers] Return formatted time

Im trying to get the time a button is pressed and display it on the
screen


case R.id.btoMovies:
statuschange.setText("To Movies");
mystatus="2";
Time now = new Time();
now.setToNow();
timeofchange.setText("" + now);

and it returns 20120401T232303GMT(0,91,0,0,1333322583)

Im trying to get the time formatted YYYYMMDDTHHMMSS format ... is
this the best way to do this ?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate