kiwi

  點部落 :: Home :: Syndication :: 我的收藏 ::  :: Login
  文章數 - 31, 回應數 - 0, 引用數 - 0

每月文章

文章分類

      Dim ci As CultureInfo = New CultureInfo("zh-TW")      '指定國別
        ci.DateTimeFormat.Calendar = New TaiwanCalendar       '國曆曆法
        System.Threading.Thread.CurrentThread.CurrentCulture = ci
        Console.WriteLine(DateTime.Now.ToShortDateString())   '民國日期格式
        Console.WriteLine(Date.Now.ToString("ddd"))           '星期 x 方式呈現
        Dim tlc As TaiwanLunisolarCalendar = New TaiwanLunisolarCalendar()'取得今天的農曆年月日
        Console.WriteLine("今天是農曆 " & tlc.GetDayOfMonth(Date.Now) & " 月" & tlc.GetDayOfMonth(Date.Now) & " 日") '今天是農曆 x月 x日
        Console.ReadKey()


posted on 2008/7/8 14:47 | 我要推薦 | 閱讀數 : 121 | 文章分類 [ .NET ] 訂閱

Feedback

目前沒有回應.

回應

標題:
姓名:
電子郵件:(將不會被顯示)
個人網頁:
內容: 

登入後使用進階評論
Please add 1 and 4 and type the answer here: