You can use ParseExact to specify the date and time format.
eg:.
DateTime dateTime = DateTime.ParseExact("2009-12-01 23:12:10", "yyyy-MM-dd HH:mm:ss", null);
What gives:
Assert.That(dateTime, Is.EqualTo(new DateTime(2009, 12, 1, 23, 12, 10)));
You can also specify a culture that uses this format and analyze the date and time using it, while preserving the security parsing from the OS culture.
With a quick glance, it seems that there is no culture with this exact predefined format, but in general there are many standard formats in standard cultures.
source share