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

asp.netÖÐSystem.DateTime.Now.ToString()µÄһЩÓ÷¨

Asp.netÖеÄÈÕÆÚ´¦Àíº¯Êý
 //2009Äê4ÔÂ24ÈÕ
this.TextBox6.Text = System.DateTime.Now.ToString("D");
//2009-4-24
this.TextBox7.Text = System.DateTime.Now.ToString("d");
//2009Äê4ÔÂ24ÈÕ 16:30:15
this.TextBox8.Text = System.DateTime.Now.ToString("F");
//2009Äê4ÔÂ24ÈÕ 16:30
this.TextBox9.Text = System.DateTime.Now.ToString("f");
//2009-4-24 16:30:15
this.TextBox10.Text = System.DateTime.Now.ToString("G");
//2009-4-24 16:30
this.TextBox11.Text = System.DateTime.Now.ToString("g");
//16:30:15
this.TextBox12.Text = System.DateTime.Now.ToString("T");
//16:30
this.TextBox13.Text = System.DateTime.Now.ToString("t");
//2009Äê4ÔÂ24ÈÕ 8:30:15
this.TextBox14.Text = System.DateTime.Now.ToString("U");
//2009-04-24 16:30:15Z
this.TextBox15.Text = System.DateTime.Now.ToString("u");
//4ÔÂ24ÈÕ
this.TextBox16.Text = System.DateTime.Now.ToString("m");
this.TextBox16.Text = System.DateTime.Now.ToString("M");
//Tue, 24 Apr 2009 16:30:15 GMT
this.TextBox17.Text = System.DateTime.Now.ToString("r");
this.TextBox17.Text = System.DateTime.Now.ToString("R");
//2009Äê4ÔÂ
this.TextBox19.Text = System.DateTime.Now.ToString("y");
this.TextBox19.Text = System.DateTime.Now.ToString("Y");
//2009-04-24T15:52:19.1562500+08:00
this.TextBox20.Text = System.DateTime.Now.ToString("o");
this.TextBox20.Text = System.DateTime.Now.ToString("O");
//2009-04-24T16:30:15
this.TextBox18.Text = System.DateTime.Now.ToString("s");
//2009-04-24 15:52:19
this.TextBox21.Text = System.DateTime.Now.ToString("yyyy-MM-dd HH£ºmm£ºss£ºffff");
//2009Äê04ÔÂ24 15ʱ56·Ö48Ãë
this.TextBox22.Text = System.DateTime.Now.ToString("yyyyÄêMMÔÂdd HHʱmm·ÖssÃë"); 
ת×Ô£ºhttp://www.cnblogs.com/X-Jonney/archive/2009/07/30/1535047.html


Ïà¹ØÎĵµ£º

asp.net ת»»ÈËÃñ±Ò´óС½ð¶î


using System;
using System.Collections.Generic;
using System.Text;
namespace Common
{
/// <summary>
/// ת»»ÈËÃñ±Ò´óС½ð¶î¡£
/// </summary>
public class Rmb
{
/// <summary>
/// ת»»ÈËÃñ±Ò´óС½ð¶î
/// </summary>
/// <param name="num">½ð¶î</ ......

asp.net URL ÏÔʾÂÒÂë ½â¾ö·½·¨

¸Õ¸Õ½Ó´¥ÍøÒ³¿ª·¢£¬²»¹ýÓöµ½URR²ÎÊý´«µÝ´íÎóµÄÎÊÌ⣬Á½¸öÒ³Ãæ½øÐÐÐÅÏ¢½»»¥Ê±¿ÉÒÔÓÃurl½øÐд«µÝ£¬µ«ÊÇÈç¹û´«µÝÐÅÏ¢µÄ±àÂë¸ñʽ²»ÊÇUTF-8£¨»òÕß²»ÊÇÉèÖõÄĬÈϸñʽ£©URL´«µÝʱ»á³öÏÖÂÒÂë¡£
±ÈÈçÄã´«È뺺×Ö£¬»òÕß´«Èë"§”µÈÆäËû±àÂë¸ñʽµÄ×Ö·û´®ÏµÍ³½âÎöºóµÄurlΪÂÒÂë¡£¾­¹ýÔÚÍøÉϵIJéÕÒ¾õµÃÒ»ÏÂÁ½ÖÖ·½Ê½±È½ÏºÃ£º
1 ......

ASP.NET ´Óxml¶Á³öÊý¾ÝʱµÄ·ÖÒ³·½·¨

public string GetPage(int page, int pages, string url)
        {
            if (pages == 0)
            {
       &n ......

asp.net Éí·ÝÑéÖ¤£¨×î¼òµ¥Æª£©

ÔÚ´´½¨ÍøÕ¾ÖУ¬³£³£»áʹÓõ½Éí·ÝÑéÖ¤¡£asp.netÖÐÄÚÖÃÁ˼¸ÖÖÉí·ÝÑéÖ¤µÄ·½Ê½£¬ÈçWindows¡¢froms¡¢PassportµÈ¡£Õ⼸ÖÖÉí·ÝÑéÖ¤µÄ·½Ê½¸÷Óв»Í¬¡£
Ò»°ãÀ´Ëµ£¬ÍøÕ¾µÄÉí·ÝÑéÖ¤·½Ê½¶¼»á¾­¹ýÒÔϼ¸¸ö²½Ö裺
1¡¢ÊäÈëÓû§ÃûºÍÃÜÂ룬µ¥»÷È·¶¨°´Å¥¡£
2¡¢ÔÚºǫ́ÅжÏÓû§ÃûºÍÃÜÂëÊÇ·ñÕýÈ·£¬Èç¹û´íÎó·µ»ØÌáʾ£»Èç¹ûÕýÈ·£¬½øÈë¿É·ÃÎʵÄÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ