Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why does DateTimeFormatInfo.GetAllDateTimePatterns return different results in different .NET versions?
  2. var culture = new CultureInfo("zh-CN", true);
  3. var formats = culture.GetAllDateTimePatterns('D');
  4.        
  5. yyyy'年'M'月'd'日'
  6.     yyyy'年'M'月'd'日',dddd
  7.     dddd,yyyy'年'M'月'd'日'
  8.        
  9. yyyy'年'M'月'd'日'
  10.    yyyy-MM-dd
  11.    dddd, yyyy-MM-dd
  12.    dddd, yyyy'年'M'月'd'日'