zoukankan      html  css  js  c++  java
  • 最简单的日历控件“星期几”变为“几”

    原来真的很简单。

     1private void WebCalendar_PreRender(object sender, System.EventArgs e)
     2{
     3    Thread threadCurrent = Thread.CurrentThread; 
     4    CultureInfo ciNew = (CultureInfo)threadCurrent.CurrentCulture.Clone(); 
     5    if(ciNew.LCID == 2052)
     6    {
     7        ciNew.DateTimeFormat.DayNames = new string[]{"","","","","","",""}
     8        ciNew.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday;
     9        threadCurrent.CurrentCulture = ciNew;
    10    }

    11}
  • 相关阅读:
    053-242
    053-227
    053-671
    053-489
    053-670
    sql
    白纸黑字签字画押,出人命的事
    CSS
    JS
    Eclipse发布地址不同引发的问题
  • 原文地址:https://www.cnblogs.com/qingyang/p/226596.html
Copyright © 2011-2022 走看看