Skip to main content

Posts

Showing posts from July, 2014

For Localize Datetime in Windows Application

  private void Form1_Load(object sender, EventArgs e)         {             // Creating a Global culture specific to our application.             System.Globalization.CultureInfo cultureInfo =new System.Globalization.CultureInfo("en-US");             // Creating the DateTime Information specific to our application.             System.Globalization.DateTimeFormatInfo dateTimeInfo =                 new System.Globalization.DateTimeFormatInfo();             // Defining various date and time formats.             dateTimeInfo.DateSeparator = "/";  ...