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

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -