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
Post a Comment