DataTime dt=DateTime.Now;
Label1.Text=dt.ToLongDateString();

解决方案 »

  1.   

    感谢您使用微软产品。hbxtx(xy)的方法很正确。同时,建议您要注意culture的选择,下面的代码供您参考:System.Globalization.CultureInfo ci=new System.Globalization.CultureInfo("zh-CN");
    Label1.Text=System.DateTime.Now.ToString("D",ci);详细的信息,请您参阅下面的文章:
    http://msdn.microsoft.com/library/en-us/cpguide/html/cpconformattingobjectsforspecificculture.asp-微软全球技术中心 本贴子以“现状”提供且没有任何担保,同时也没有授予任何权利。具体事项可参见使用条款(http://support.microsoft.com/directory/worldwide/zh-cn/community/terms_chs.asp)。
    为了为您创建更好的讨论环境,请参加我们的用户满意度调查(http://support.microsoft.com/directory/worldwide/zh-cn/community/survey.asp?key=(S,49854782))。
      

  2.   

    Label1.Text = DateTime.Now.Year & "年 " & DateTime.Now.Month & "月" & DateTime.Now.Day & "日"
      

  3.   

    DataTime dt=DateTime.Now;
    Label1.Text=dt.ToShortDateString();
      

  4.   

    Dim myDate As DateTime = DateTime.Now
    Label1.Text = FormatDateTime(myDate, DateFormat.LongDate)