Use SimpleDateFormat. On Sun, Apr 1, 2012 at 7:34 PM, aikidoguy <clayrichmo...@gmail.com> wrote: > 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+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en