vb System.DateTime.Today类(方法)实例源码

下面列出了vb System.DateTime.Today 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:Syste   
Module modMain
   Public Sub Main()
      ' Get the current date.
      Dim thisDay As DateTime = DateTime.Today
      ' Display the date in the default (general) format.
      Console.WriteLine(thisDay.ToString())
      Console.WriteLine()
      ' Display the date in a variety of formats.
      Console.WriteLine(thisDay.ToString("d"))
      Console.WriteLine(thisDay.ToString("D"))
      Console.WriteLine(thisDay.ToString("g"))
   End Sub
End Module


问题


面经


文章

微信
公众号

扫码关注公众号