If you are not sure if this will work, you can use "TryParseExact". If it works "success", it will be true. Thus, you do not risk the exception of parsing.
DateTime timestamp;
bool success = DateTime.TryParseExact("2015-12-25", "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal, out timestamp);
source
share