C#中取得日期的英文缩写

 DateTime.Now.ToString("MMM",   CultureInfo.InvariantCulture);

 

  DateTimeFormatInfo   myDTFI   =   new   CultureInfo(   "en-US",   false   ).DateTimeFormat;  
  string   strmon   =   myDTFI.GetAbbreviatedMonthName(1);

 

 

得到一月的天数

 

DateTime.DaysInMonth(int   year,int   month) ;

posted @ 2008-09-05 17:04  alex hu  阅读(3641)  评论(0编辑  收藏  举报