Date format in java -


possible duplicate:
how convert seconds_since_the_beginning_of_this_epoch date format in java..?

hi have "1304054138" in ssboetod . want display in "21 apr 2011 11:46:00 ist" format. how can in java code... ?

simpledateformat sdf = new simpledateformat("dd mm yyyy hh:mm:ss z") string result = sdf.format(new date(timestamp)); 

if timestamp string, can obtain long version calling long.parselong(string)


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -