using System;
using System.Globalization;
namespace ProgramConsole
{
class Program
{
static void Main(string[] args)
{
string str = "24-04-2014T15:18:18";
DateTime dtStartDateTime = DateTime.ParseExact(str,
"dd-MM-yyyyTHH:mm:ss",
CultureInfo.InvariantCulture);
Console.WriteLine(dtStartDateTime);
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uR2xvYmFsaXphdGlvbjsKCm5hbWVzcGFjZSBQcm9ncmFtQ29uc29sZQp7CiAgICBjbGFzcyBQcm9ncmFtCiAgICB7CiAgICAgICAgc3RhdGljIHZvaWQgTWFpbihzdHJpbmdbXSBhcmdzKQogICAgICAgIHsKICAgICAgICAgICAgc3RyaW5nIHN0ciA9ICIyNC0wNC0yMDE0VDE1OjE4OjE4IjsKICAgICAgICAgICAgRGF0ZVRpbWUgZHRTdGFydERhdGVUaW1lID0gRGF0ZVRpbWUuUGFyc2VFeGFjdChzdHIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICJkZC1NTS15eXl5VEhIOm1tOnNzIiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgQ3VsdHVyZUluZm8uSW52YXJpYW50Q3VsdHVyZSk7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGR0U3RhcnREYXRlVGltZSk7CiAgICAgICAgfSAgICAgICAKICAgIH0KfQo=