導航

          <2005年10月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345
          統計
          • 隨筆 - 47
          • 文章 - 0
          • 評論 - 27
          • 引用 - 0

          常用鏈接

          留言簿(1)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

           
          Calendar lCal = Calendar.getInstance(); 
          String year = tod.substring(6);  //tod 是DD/MM/YYYY的格式的日期。
          String month = tod.substring(3,5);
           lCal.set(FormatFunctions.s2i(year), FormatFunctions.s2i(month), 1); 調用一個共用方法將字符串轉換成整型。
               lCal.add(Calendar.MONTH, 0);
               lCal.add(Calendar.DATE, -1);
                SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
                tod = formatter.format(lCal.getTime();
          posted on 2005-10-14 14:56 rodney 閱讀(2275) 評論(0)  編輯  收藏 所屬分類: 初學JAVA
           
          主站蜘蛛池模板: 平度市| 萨嘎县| 辽宁省| 广丰县| 宜宾县| 寿阳县| 安顺市| 苍溪县| 鹿邑县| 长海县| 柯坪县| 津南区| 宝山区| 富民县| 凤冈县| 兰州市| 额敏县| 磴口县| 成都市| 慈利县| 衡南县| 安丘市| 绍兴市| 盐山县| 纳雍县| 抚顺市| 紫金县| 江源县| 上思县| 湖北省| 长沙县| 土默特左旗| 东丰县| 沙田区| 桦川县| 苍山县| 平山县| 休宁县| 黔江区| 巴楚县| 尉犁县|