首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

对于显示时间的格式

2011-12-24 
关于显示时间的格式Label1.TextNow我要去打前面的日期,该什么做~?除了用Label1.TextConvert.ToString(Sy

关于显示时间的格式
Label1.Text   =   Now   我要去打前面的日期,该什么做~?
除了用Label1.Text   =   Convert.ToString(System.DateTime.Now.Hour)   +   ": "   +   Convert.ToString(System.DateTime.Now.Minute)   +   ": "   +   Convert.ToString(System.DateTime.Now.Second)
还有其他的办法吗?


[解决办法]
Label1.Text = Datetime.Now.tostring( "HH:mm ss ")

热点排行