String to datetime with specific Format


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. DateTime myDate = DateTime.ParseExact("28-12-2008", "dd-MM-yyyy", System.Globalization.CultureInfo.InvariantCulture);

Report this snippet


Comments


You need to login to view comments.