The format specifier for month is MM
not mm
, try using MM/dd/yyyy
. Also when using a custom format it's best to pass InvariantCulture
to avoid any clashes with the current culture your app is running under i.e.
DateTime.Parse(txtVADate.Text.Trim()).ToString("MM/dd/yyyy", CultureInfo.InvariantCulture);