java - To convert current time to utc format in samsung galaxy 5 -


i want convert current phone time utc format while posting message.my code doesnt works in samsung galaxy 5.in samsung current time not converted.below code

simpledateformat sdfdatetime = new simpledateformat("yyyy-mm-dd hh:mm:ss"); sdfdatetime.settimezone(timezone.gettimezone("utc")); string newtime = sdfdatetime.format(new date(system.currenttimemillis())); 


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -