Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net DateTime ʱ¼äº¯Êý

1¡¢DateTime     Êý×ÖÐÍ   
    System.DateTime currentTime=new System.DateTime();   
    1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë   
    currentTime=System.DateTime.Now;   
    1.2 È¡µ±Ç°Äê   
    int Äê=currentTime.Year;   
    1.3 È¡µ±Ç°Ô   
    int ÔÂ=currentTime.Month;   
    1.4 È¡µ±Ç°ÈÕ   
    int ÈÕ=currentTime.Day;   
    1.5 È¡µ±Ç°Ê±   
    int ʱ=currentTime.Hour;   
    1.6 È¡µ±Ç°·Ö   
    int ·Ö=currentTime.Minute;   
    1.7 È¡µ±Ç°Ãë   
    int Ãë=currentTime.Second;   
    1.8 È¡µ±Ç°ºÁÃë   
    int ºÁÃë=currentTime.Millisecond;   
    £¨±äÁ¿¿ÉÓÃÖÐÎÄ£©   
2.
dateObj   =   new   Date()£»  
   
  dateObj.getYear();  
  dateObj.getMonth();  
  dateObj.getDate();  
  dateObj.getHour();  
  dateObj.getMinutes();  
  dateObj.getSeconds();  
  dateObj.getMilliseconds();
3.
DateTime   now   =   new   DateTime();  
  now   =   System.DateTime.Now;  
  String   dateStr   =   now.ToString("yyyyÄêMMÔÂddÈÕ   HH:mm:ss");   
   
  ³öÀ´µÄ¸ñʽÊÇÈç“2005Äê09ÔÂ01ÈÕ   12£º00£º00”
4.ToFileTimeUtc().ToString();//127756704859912816
Label4.Text = dt.ToLocalTime().ToString();//2005-11-5 21:21:25
Labe


Ïà¹ØÎĵµ£º

asp.net ¶à×Ö¶ÎÄ£ºý²éѯ´úÂë

¾­³£Óõ½¶à×ֶεÄÄ£ºý²éѯ£¬ÉÏÃæµÄº¯Êý¿ÉÒÔʵÏÖ£¬ÀýÈçstrKeyWordsֵΪ“½Å±¾Ö®¼Ò”ʱ
string strField = "id|className|classAdd";
string strKeyWords = this.tbxKeyWords.Text.Trim();
string strSql = dbexe.searchText("select * from class", strField, strKeyWords);
¾­³£Óõ½¶à×ֶεÄÄ£ºý²éѯ£¬ÉÏà ......

Asp.net treeviewʵÏÖÎÞÏÞ¼¶Ê÷ʵÏÖ´úÂë

×î½üÑо¿ÁËÒ»ÏÂtreeview£¬·¢ÏÖÓÐÁ½ÖÖʵÏÖÎÞÏÞ¼¶Ê÷µÄ·½·¨£¬ÎÄ×Ö²»Ïë¶àд£¬Ö±ÈëÖ÷Ìâ¡£
ÏÈ¿´¿´Ð§¹ûͼ£º
ÏÈ¿´¿´Êý¾Ý¿â±íµÄÉè¼Æ£¬Êý¾Ý±íÖ÷Òª°üÀ¨ID£¬Name£¬ParentIDÕâÈýÏÆäÖÐIDÊÇÖ÷¼ü£¬ParentID¶ÔÓ¦½ÚµãµÄ¸¸½Úµã£º
·½·¨Ò»£ºÓõݹé±éÀúÊý¾Ý£¬²¢½«½ÚµãÖð¸öÌí¼Óµ½treeviewÖÐÈ¥¡£
1.ÏȽøÐÐÊý¾Ý¿âÁ¬½ÓºÍÊý¾ÝµÄ¶ÁÈ¡£¬²¢½«¸ù½Ú ......

asp.net ½«Excelµ¼Èëµ½Sql2005»ò2000

asp.net ½«Excelµ¼Èëµ½Sql2005»ò2000µÄ˼·ºÍ²½Ö裺
1¡¢½«ExcelÎļþÉÏ´«µ½·þÎñÆ÷¶Ë
        Õâ¸öÎÒ²»ÏëÏêϸ½²ÁË,ÍøÉÏÒ»ËÑÒ»´ó°ÑµÄ.
        ×¢Ò⣺£¨1ÔÚÈ¡·þÎñÆ÷·¾¶Ê±Ò»¶¨ÒªÓÃthis.Page.MapPath(".")¶ø²»ÒªÓà this.Page.Request.Applic ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ