隨筆-7  評論-24  文章-102  trackbacks-0

          using System;
          using System.Collections.Generic;
          using System.Text;
          using System.Xml.Linq;
          using System.Data;
          using System.Linq;
          using System.IO;
          using System.Xml;

          namespace OurMsg.Class.common
          {
              
          /// <summary>
              
          /// XML 格式轉換類
              
          /// </summary>

              public class XmlConvert
              
          {
                  
          DeCode

                  
          EnCode

                  
          /// <summary>
                  
          /// xml傳輸 時間格式的一點格式化(建議取消)
                  
          /// </summary>
                  
          /// <param name="dtList"></param>
                  
          /// <param name="key"></param>
                  
          /// <param name="format"></param>

                  public static void DataTimeToString(DataTable dt, string key, string format)
                  
          {
                      
          foreach (DataRow row in dt.Rows)
                          row[key] 
          = Convert.ToDateTime(row[key]).ToString(format);
                  }

              }

          }

          posted on 2009-07-15 15:09 黃小二 閱讀(339) 評論(0)  編輯  收藏 所屬分類: ASP.NETC#
          主站蜘蛛池模板: 洪湖市| 广东省| 会理县| 楚雄市| 临漳县| 嘉善县| 奈曼旗| 集贤县| 绥化市| 长兴县| 伽师县| 囊谦县| 琼海市| 那坡县| 丹东市| 余庆县| 临汾市| 吉安市| 迁西县| 许昌县| 台中县| 招远市| 云南省| 慈溪市| 阆中市| 靖州| 阿巴嘎旗| 东安县| 临洮县| 西乌| 鄂托克旗| 郓城县| 凤冈县| 宜章县| 留坝县| 天全县| 通山县| 德州市| 太保市| 台江县| 板桥市|