fork(30) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Globalization;
  5.  
  6. public class Test
  7. {
  8. private static readonly int[][] matrix = new int[6][];
  9.  
  10. static Test()
  11. {
  12. matrix[0] = new int[] { 1, 2, 3, 4, 5, 6 };
  13. matrix[1] = new int[] { 7, 8, 9, 10, 11, 12 };
  14. matrix[2] = new int[] { 13, 14, 15, 16, 17, 18 };
  15. matrix[3] = new int[] { 19, 20, 21, 22, 23, 24 };
  16. matrix[4] = new int[] { 25, 26, 27, 28, 29, 30 };
  17. matrix[5] = new int[] { 31, 32, 33, 34, 35, 36 };
  18. }
  19.  
  20. public static void Main()
  21. {
  22. string date="01.05.2015 12:12:34";
  23. var dutchCulture = CultureInfo.CreateSpecificCulture("nl-NL");
  24. var date1 = DateTime.ParseExact(date, "dd.MM.yyyy HH:mm:ss", dutchCulture);
  25. Console.Write("Month:{0} Day{1} ToString:{2}", date1.Month,date1.Day,date1.ToString());
  26. }
  27. }
Success #stdin #stdout 0.07s 34056KB
stdin
Standard input is empty
stdout
Month:5 Day1 ToString:5/1/2015 12:12:34 PM