using System;
using System.Globalization;
namespace ProgramConsole
{
public class Program
{
public static void Main(string[] args)
{
string s = "18-10-2013-20-27-54";
DateTime dt = DateTime.ParseExact(s, "dd-MM-yyyy-HH-mm-ss", CultureInfo.InvariantCulture);
Console.WriteLine(dt);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uR2xvYmFsaXphdGlvbjsKCm5hbWVzcGFjZSBQcm9ncmFtQ29uc29sZQp7CiAgICBwdWJsaWMgY2xhc3MgUHJvZ3JhbQogICAgewogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKHN0cmluZ1tdIGFyZ3MpCiAgICAgICAgewogICAgICAgICAgICBzdHJpbmcgcyA9ICIxOC0xMC0yMDEzLTIwLTI3LTU0IjsKICAgICAgICAgICAgRGF0ZVRpbWUgZHQgPSBEYXRlVGltZS5QYXJzZUV4YWN0KHMsICJkZC1NTS15eXl5LUhILW1tLXNzIiwgQ3VsdHVyZUluZm8uSW52YXJpYW50Q3VsdHVyZSk7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGR0KTsKICAgICAgICB9CiAgICB9Cn0=