2013年8月26日 星期一

時間轉字串

ex:


Time time = new Time();
time.setToNow();
String str = time.format("%Y-%m-%d %H:%M");


->

2013-08-27 11:31

沒有留言:

張貼留言