How to create the Culture Info for Date Time Format Provider
CultureInfo represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.
The CultureInfo class holds culture-specific information, such as the associated language, sublanguage, country/region, calendar, and cultural conventions. This class also provides access to culture-specific instances of DateTimeFormatInfo, NumberFormatInfo, CompareInfo, and TextInfo. These objects contain the information required for culture-specific operations, such as casing, formatting dates and numbers, and comparing strings.
Assembly: Mscorlib (in Mscorlib.dll)
Namespace: System.Globalization
using System.Globalization;
To Create Object for CultureInfo:
CultureInfo Culture = new CultureInfo("en-Us");
DateTime Dt=Convert.ToDateTime("01/01/1984",Culture);-> Culture For Tamil India -> ta-IN , ta
- For More About CultureInfoVisit MSDN



0 comments:
Post a Comment