⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch8_06.cs

📁 《c#技术内幕代码》
💻 CS
字号:
using System;
using System.Globalization; 


class CH8_6
{
   public static void Main()
   {
      // What is today?
      DateTime now = DateTime.Now;
      
      // Display it for the user
      Console.WriteLine("It is now: {0}", now );
      
      // Just the date
      DateTime today = DateTime.Today;
      
      // Display it for the user
      Console.WriteLine("It is now: {0}", today );
      
      // Hm. They don't want to see the time for today.
      Console.WriteLine("Today's Date: {0}", 
         today.Format("dddd, MMMM dd yyyy",DateTimeFormatInfo.InvariantInfo)
      );
   }								
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -