Question: how to convert dd/mm/yyyy to dd/mm/yy in c#?
Answer: using System.Globalization; public partial class DateConversion: System.Web.UI.Page. #region How to convert dd / mm / yyyy into dd - mm - yyyy. protected void btnConvert_Click(object sender, EventArgs e) { DateTime dt = DateTime.ParseExact(txtDate.Text, "dd/MM/yy", CultureInfo.InvariantCulture);